403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/sphinx/testing/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/sphinx/testing/__pycache__/path.cpython-39.opt-1.pyc
a

�ab��@s�dZddlZddlZddlZddlZddlZddlmZmZm	Z	m
Z
ddlmZe�
�p^e��Zed�dd�Ze�ZGdd	�d	e�ZdS)
z�
    sphinx.testing.path
    ~~~~~~~~~~~~~~~~~~~

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�IO�Any�Callable�List)�RemovedInSphinx50Warning��returncCst�d�}t�|�|S)zGet current umask valuer)�os�umask)r
�r�7/usr/lib/python3.9/site-packages/sphinx/testing/path.py�getumasks

r
cs�eZdZdZedd�dd��Zed�dd�Zdd�dd�Ze	d�d	d
�Z
e	d�dd�Ze	d�d
d�Ze	d�dd�Z
e	d�dd�ZdHe	edd�dd�ZdIee	dd�dd�Zedd�dd�ZeZdd�dd�Zed�d d!�Zedd"�d#d$�ZdJeeed&�d'd(�ZdKeeedd*�d+d,�ZdLeeed-�d.d/�ZdMeeed-�d0d1�Zejd�d2d3�Zejd�d4d5�ZdNee	dd6�d7d8�Z e	d�d9d:�Z!e	d�d;d<�Z"dOe#e	dd>�d?d@�Z$eddA�dBdC�Z%e&ed�dDdE�Z'e%Z(Z)ed��fdFdG�Z*�Z+S)P�pathz8
    Represents a path which behaves like a string.
    rcCs|�tj�|��S)zH
        The name of the directory the file or directory is in.
        )�	__class__r	r�dirname��selfrrr�parent%szpath.parentcCstj�|�S�N)r	r�basenamerrrrr,sz
path.basenamecCs|�tj�|��S)z,
        Returns the absolute path.
        )rr	r�abspathrrrrr/szpath.abspathcCstj�|�S)z;
        Returns ``True`` if the path is absolute.
        )r	r�isabsrrrrr5sz
path.isabscCstj�|�S)z>
        Returns ``True`` if the path is a directory.
        )r	r�isdirrrrrr;sz
path.isdircCstj�|�S)z9
        Returns ``True`` if the path is a file.
        )r	r�isfilerrrrrAszpath.isfilecCstj�|�S)zB
        Returns ``True`` if the path is a symbolic link.
        )r	r�islinkrrrrrGszpath.islinkcCstj�|�S)z@
        Returns ``True`` if the path is a mount point.
        )r	r�ismountrrrrrMszpath.ismountFN)�
ignore_errors�onerrorrcCstj|||d�dS)al
        Removes the file or directory and any files or directories it may
        contain.

        :param ignore_errors:
            If ``True`` errors are silently ignored, otherwise an exception
            is raised in case an error occurs.

        :param onerror:
            A callback which gets called with the arguments `func`, `path` and
            `exc_info`. `func` is one of :func:`os.listdir`, :func:`os.remove`
            or :func:`os.rmdir`. `path` is the argument to the function which
            caused it to fail and `exc_info` is a tuple as returned by
            :func:`sys.exc_info`.
        )rrN)�shutil�rmtree)rrrrrrrSszpath.rmtree)�destination�symlinksrcCsntj|||d�tj�d�rjt�|�D]B\}}}t�|dt@�|D] }t�tj�	||�dt@�qFq&dS)a~
        Recursively copy a directory to the given `destination`. If the given
        `destination` does not exist it will be created.

        :param symlinks:
            If ``True`` symbolic links in the source tree result in symbolic
            links in the destination tree otherwise the contents of the files
            pointed to by the symbolic links are copied.
        )r!ZSPHINX_READONLY_TESTDIRi�i�N)
r�copytreer	�environ�get�walk�chmod�UMASKr�join)rr r!�rootZ_dirs�files�namerrrr"es
z
path.copytree)r rcCst�||�dS)z�
        Recursively move the file or directory to the given `destination`
        similar to the  Unix "mv" command.

        If the `destination` is a file it may be overwritten depending on the
        :func:`os.rename` semantics.
        N)r�move)rr rrr�movetree{sz
path.movetreecCst�|�dS)z!
        Removes a file.
        N)r	�unlinkrrrrr.�szpath.unlinkcCs
t�|�S)z-
        Returns a stat of the file.
        )r	�statrrrrr/�sz	path.stat)�argrcCst�||�dSr)r	�utime)rr0rrrr1�sz
path.utime�r)�mode�kwargsrcKst||fi|��Sr)�open)rr3r4rrrr5�sz	path.open�utf-8)�text�encodingr4rcKsDt|dfd|i|���}|�|�Wd�n1s60YdS)z6
        Writes the given `text` to the file.
        �wr8N�r5�write)rr7r8r4�frrr�
write_text�szpath.write_text)r8r4rcKs"tjdtdd�|j|fi|��S)�/
        Returns the text in the file.
        z;Path.text() is deprecated.  Please use read_text() instead.���
stacklevel)�warnings�warnr�	read_text)rr8r4rrrr7�s�z	path.textcKs@t|fd|i|���}|��Wd�S1s20YdS)r>r8N�r5�read)rr8r4r<rrrrD�szpath.read_textcCstjdtdd�|��S)�0
        Returns the bytes in the file.
        z=Path.bytes() is deprecated.  Please use read_bytes() instead.r?r@)rBrCr�
read_bytesrrrr�bytes�s�z
path.bytescCs8t|dd��}|��Wd�S1s*0YdS)rG�rb�r3NrE)rr<rrrrH�szpath.read_bytes)rI�appendrcCsH|r
d}nd}t||d��}|�|�Wd�n1s:0YdS)z�
        Writes the given `bytes` to the file.

        :param append:
            If ``True`` given `bytes` are added at the end of the file.
        �ab�wbrKNr:)rrIrLr3r<rrr�write_bytes�s
zpath.write_bytescCstj�|�S)z5
        Returns ``True`` if the path exist.
        )r	r�existsrrrrrP�szpath.existscCstj�|�S)zb
        Returns ``True`` if the path exists unless it is a broken symbolic
        link.
        )r	r�lexistsrrrrrQ�szpath.lexists�)r3�exist_okrcCstj|||d�dS)z1
        Recursively create directories.
        )rSN)r	�makedirs)rr3rSrrrrT�sz
path.makedirs)�argsrcGs"|�tjj|gt|j|��R��S)zP
        Joins the path with the argument given and returns the result.
        )rr	rr(�map)rrUrrr�joinpath�sz
path.joinpathcCs
t�|�Sr)r	�listdirrrrrrX�szpath.listdircsd|jjt���fS)Nz%s(%s))r�__name__�super�__repr__r�rrrr[�sz
path.__repr__)FN)F)r2)r6)r6)r6)F)rRF),rY�
__module__�__qualname__�__doc__�propertyr�strrr�boolrrrrrrrr"r-r,r.rr/r1rr5r=r7rD�builtinsrIrHrOrPrQ�intrTrWrrXZ__div__�__truediv__r[�
__classcell__rrr\rr s>
r)r_rcr	r�sysrB�typingrrrrZsphinx.deprecationr�getfilesystemencoding�getdefaultencodingZFILESYSTEMENCODINGrdr
r'rarrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit