403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/fs/__pycache__/mountfs.cpython-312.pyc
�

��ob%��L�dZddlmZmZmZddlZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZmZdd
lmZmZmZej*rHddlmZmZmZmZmZmZmZmZmZmZm Z ddl!m"Z"dd
l#m$Z$m%Z%ddl&m'Z'ddl(m)Z)ejTdd��Z+Gd�de,�Z-Gd�de�Z.y)z0Manage other filesystems as a folder hierarchy.
�)�absolute_import�print_function�unicode_literalsN)�	text_type�)�errors)�FS)�MemoryFS)�validate_open_mode�validate_openbin_mode)�abspath�forcedir�normpath)�IO�Any�BinaryIO�
Collection�Iterator�List�MutableSequence�Optional�Text�Tuple�Union)�ResourceType)�Info�RawInfo)�Permissions)�SubFS�M�MountFS)�boundc��eZdZdZy)�
MountErrorzThrown when mounts conflict.N)�__name__�
__module__�__qualname__�__doc__���,/usr/lib/python3/dist-packages/fs/mountfs.pyr$r$'s��&r*r$c���eZdZdZdddddd�Zd$�fd�	Zd�Zd�Zd	�Zd
�Z	�fd�Z
d�Zd%d
�Zd�Z
d&d�Zd'd�Zd�Zd�Zd�Zd%d�Z			d(d�Zd�Zd�Zd�Zd)d�Zd)d�Zd�Zd�Z		d*d�Zd�Zd�Z					d+d �Zd%d!�Z d"�Z!			d,d#�Z"�xZ#S)-r!zDA virtual filesystem that maps directories on to other file-systems.TF�)�virtual�	read_only�
unicode_paths�case_insensitive�invalid_path_charsc�d��tt|��||_t	�|_g|_y)z�Create a new `MountFS` instance.

        Arguments:
            auto_close (bool): If `True` (the default), the child
                filesystems will be closed when `MountFS` is closed.

        N)�superr!�__init__�
auto_closer
�
default_fs�mounts)�selfr6�	__class__s  �r+r5zMountFS.__init__6s)���	�g�t�%�'�$���"�*�����r*c�8�dj|j�S)NzMountFS(auto_close={!r}))�formatr6�r9s r+�__repr__zMountFS.__repr__Ds��)�0�0����A�Ar*c��y)Nz	<mountfs>r)r=s r+�__str__zMountFS.__str__Hs��r*c���ttt|���}|j}|jD].\}}||�s�||t|�dj
d�fcS|j|fS)a#Get the delegate FS for a given path.

        Arguments:
            path (str): A path.

        Returns:
            (FS, str): a tuple of ``(<fs>, <path>)`` for a mounted filesystem,
            or ``(None, None)`` if no filesystem is mounted on the
            given ``path``.

        N�/)rr
r�
startswithr8�len�rstripr7)r9�path�_path�
is_mounted�
mount_path�fss      r+�	_delegatezMountFS._delegateLsv�����$��0�1���%�%�
�"�k�k�	@�N�J���*�%��5��Z��!2�3�:�:�3�?�?�?�	@�����$�$r*c��t|t�rddlm}||�}t|t�std��||urt
d��ttt|���}|jD]!\}}|j|�s�td��|jj||f�|jj|d��y)	z�Mounts a host FS object on a given path.

        Arguments:
            path (str): A path within the MountFS.
            fs (FS or str): A filesystem (instance or URL) to mount.

        r)�open_fsz,fs argument must be an FS object or a FS URLzUnable to mount selfz#mount point overlaps existing mountT)�recreateN)�
isinstancer�openerrMr	�	TypeError�
ValueErrorrr
rr8rCr$�appendr7�makedirs)r9rFrJrMrGrI�_s       r+�mountz
MountFS.mountbs����b�)�$�'����B��"�b�!��J�K�K�
��:��3�4�4����$��0�1��!�[�[�	H�M�J�����
�+� �!F�G�G�	H�	
�����E�2�;�'���� � ��� �6r*c����|jr3|jD]\}}|j��|jdd�=|jj�tt
|��y�N)r6r8�closer7r4r!)r9rGrJr:s   �r+rYz
MountFS.close~sT����?�?�!�[�[�
�	��r����
�
����A��������
�g�t�"�$r*c��|j|�stj|��|j|�\}}||jur|}dj||��S)Nz{path} on {fs})rJrF)�existsr�ResourceNotFoundrKr7r<)r9rFrJ�
delegate_paths    r+�desczMountFS.desc�sY���{�{�4� ��)�)�$�/�/� �N�N�4�0���M�
���� ��B��&�&�"�=�&�A�Ar*c�p�|j�|j|�\}}|j||��S)N)�
namespaces)�checkrK�getinfo)r9rFr`rJrGs     r+rbzMountFS.getinfo�s0���
�
���N�N�4�(�	��E��z�z�%�J�z�7�7r*c�l�|j�|j|�\}}|j|�SrX)rarK�listdir�r9rFrJrGs    r+rdzMountFS.listdir��,���
�
���N�N�4�(�	��E��z�z�%� � r*c�r�|j�|j|�\}}|j|||��S)N)�permissionsrN)rarK�makedir)r9rFrhrNrJrGs      r+rizMountFS.makedir�s2���
�
���N�N�4�(�	��E��z�z�%�[�8�z�L�Lr*c��t|�|j�|j|�\}}|j|f|dd�|��S)N���)�mode�	buffering)rrarK�openbin)r9rFrlrm�kwargsrJrGs       r+rnzMountFS.openbin�sB���d�#��
�
���N�N�4�(�	��E��r�z�z�%�C�d�b�C�F�C�Cr*c�l�|j�|j|�\}}|j|�SrX)rarK�removeres    r+rqzMountFS.remove��,���
�
���N�N�4�(�	��E��y�y���r*c��|j�t|�}|dvrtj|��|j	|�\}}|j|�S)N)�rB)rarr�RemoveRootErrorrK�	removedirres    r+rvzMountFS.removedir�sN���
�
����~���9���(�(��.�.��N�N�4�(�	��E��|�|�E�"�"r*c�l�|j�|j|�\}}|j|�SrX)rarK�	readbytesres    r+rxzMountFS.readbytes�s,���
�
���N�N�4�(�	��E��|�|�E�"�"r*c�V�|j|�\}}|j||fd|i|��S�N�
chunk_size)rK�download�r9rF�filer{�optionsrJrGs       r+r|zMountFS.download�s1���N�N�4�(�	��E��r�{�{�5�$�I�:�I��I�Ir*c�t�|j�|j|�\}}|j||||��S�N)�encodingr�newline)rarK�readtext)r9rFr�rr�rJrGs       r+r�zMountFS.readtext�s6��	
�
�
���N�N�4�(�	��E��{�{�5�8�F�G�{�T�Tr*c�l�|j�|j|�\}}|j|�SrX)rarK�getsizeres    r+r�zMountFS.getsize�rfr*c�l�|j�|j|�\}}|j|�SrX)rarK�
getsyspathres    r+r�zMountFS.getsyspath�s,���
�
���N�N�4�(�	��E��}�}�U�#�#r*c�l�|j�|j|�\}}|j|�SrX)rarK�gettyperes    r+r�zMountFS.gettype�rfr*c�p�|j�|j|�\}}|j||��S�N)�purpose)rarK�geturl�r9rFr�rJrGs     r+r�zMountFS.geturl��0���
�
���N�N�4�(�	��E��y�y���y�0�0r*c�p�|j�|j|�\}}|j||��Sr�)rarK�hasurlr�s     r+r�zMountFS.hasurl�r�r*c�l�|j�|j|�\}}|j|�SrX)rarK�isdirres    r+r�z
MountFS.isdir�s+���
�
���N�N�4�(�	��E��x�x���r*c�l�|j�|j|�\}}|j|�SrX)rarK�isfileres    r+r�zMountFS.isfile�rrr*c�r�|j�|j|�\}}|j|||��S)N)r`�page)rarK�scandir)r9rFr`r�rJrGs      r+r�zMountFS.scandir�s4��	
�
�
���N�N�4�(�	��E��z�z�%�J�T�z�B�Br*c�n�|j�|j|�\}}|j||�SrX)rarK�setinfo)r9rF�inforJrGs     r+r�zMountFS.setinfos.���
�
���N�N�4�(�	��E��z�z�%��&�&r*c��|j�|j|�\}}|j|�tt	|��}|SrX)rarK�validatepathr
rres    r+r�zMountFS.validatepaths<���
�
���N�N�4�(�	��E�
������x��~�&���r*c	��t|�|j�|j|�\}}	|j|	f|||||d�|��S)N)rlrmr�rr�)rrarK�open)
r9rFrlrmr�rr�rrJrGs
          r+r�zMountFS.opens[��	�4� ��
�
���N�N�4�(�	��E��r�w�w��
������

��
�	
r*c�v�|j�|j|�\}}|j||fd|i|��Srz)rarK�uploadr}s       r+r�zMountFS.upload+s:���
�
���N�N�4�(�	��E��r�y�y���G��G�w�G�Gr*c�n�|j�|j|�\}}|j||�SrX)rarK�
writebytes)r9rF�contentsrJrGs     r+r�zMountFS.writebytes1s.���
�
���N�N�4�(�	��E��}�}�U�H�-�-r*c�V�|j|�\}}|j|||||��Sr�)rK�	writetext)r9rFr�r�rr�rJrGs        r+r�zMountFS.writetext7s7���N�N�4�(�	��E��|�|��8�h�v�w��
�	
r*)TrX)NF)�rrk)NNrt)r|)NN)r�rkNNrt)zutf-8Nrt)$r%r&r'r(�_metar5r>r@rKrVrYr^rbrdrirnrqrvrxr|r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��
__classcell__)r:s@r+r!r!+s����N����!�"�
�E��B��%�,7�8%�B�8�!�M�D� �#�#�J����
U�!�$�!�1�1�� ��
�		C�'�������
�0H�.����

r*)/r(�
__future__rrr�typing�sixrrtr�baser	�memoryfsr
rlrrrFr
rr�
TYPE_CHECKINGrrrrrrrrrrr�enumsrr�rrrhr�subfsr�TypeVarr �	Exceptionr$r!r)r*r+�<module>r�s����I�H�
�����;�-�-�	�������$�#�(������s�)�,�A�'��'�X
�b�X
r*

Youez - 2016 - github.com/yon3zu
LinuXploit