| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/fs/__pycache__/ |
Upload File : |
�
��ob�4 � �T � d Z ddlmZmZmZ ddlZddlmZ ddlZddlm Z ddl
mZmZ ddl
mZ dd lmZ dd
lmZ ddlmZ ddlmZ ej. r<dd
lmZmZmZmZmZmZ ddlmZ eeeeef f Z ee!gef Z" ejF d� Z$ejJ G d� de� � Z&y)z0Container for filesystem resource informations.
� )�absolute_import�print_function�unicode_literalsN)�cast)�deepcopy� )�Text�overload)�ResourceType)�MissingInfoNamespace)�join)�Permissions)�epoch_to_datetime)�Any�Callable�List�Mapping�Optional�Union)�datetime�Tc �� � e Zd ZdZg d�Zefd�Zd� ZeZd� Z e
d� � Ze
d� � Zd� Ze
d � � Ze
d
� � Zd%d�Zd
� Z
d� Zd� Zd%d�Zd� Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Z ed � � Z!ed!� � Z"ed"� � Z#ed#� � Z$ed$� � Z%y)&�Infoa� Container for :ref:`info`.
Resource information is returned by the following methods:
* `~fs.base.FS.getinfo`
* `~fs.base.FS.scandir`
* `~fs.base.FS.filterdir`
Arguments:
raw_info (dict): A dict containing resource info.
to_datetime (callable): A callable that converts an
epoch time to a datetime object. The default uses
`~fs.time.epoch_to_datetime`.
)�raw�_to_datetime�
namespacesc �p � || _ || _ t | j j � � | _ y)z3Create a resource info object from a raw info dict.N)r r � frozenset�keysr )�self�raw_info�to_datetimes �)/usr/lib/python3/dist-packages/fs/info.py�__init__z
Info.__init__1 s) � � ���'���#�D�H�H�M�M�O�4��� c � � | j rdj | j � S dj | j � S )Nz
<dir '{}'>z<file '{}'>)�is_dir�format�name�r s r# �__str__zInfo.__str__8 s3 � ��;�;��&�&�t�y�y�1�1� �'�'�� � �2�2r% c �6 � | j t |dd � k( S )Nr )r �getattr)r �others r# �__eq__zInfo.__eq__A s � ��x�x�7�5�%��6�6�6r% c � � y �N� �r �ts r# �_make_datetimezInfo._make_datetimeE � � �
r% c � � y r1 r2 r3 s r# r5 zInfo._make_datetimeJ r6 r% c �* � |�| j |� S y r1 )r r3 s r# r5 zInfo._make_datetimeO s � ��=��$�$�Q�'�'�r% c � � y r1 r2 )r � namespace�keys r# �getzInfo.getV r6 r% c � � y r1 r2 �r r: r; �defaults r# r<