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/platformdirs/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/platformdirs/__pycache__/unix.cpython-39.pyc
a

���e_)�@s�dZddlmZddlZddlZddlmZddlmZddl	m
Z
ddlmZej
d	krjd
d�dd
�ZnddlmZGdd�de�Zdddd�dd�Zddd�dd�ZdgZdS)zUnix.�)�annotationsN)�ConfigParser)�Path)�Iterator�)�PlatformDirsABC�win32�int��returncCsd}t|��dS)Nzshould only be used on Unix)�RuntimeError)�msg�r�5/usr/lib/python3.9/site-packages/platformdirs/unix.py�getuidsr)rc@s�eZdZdZedd�dd��Zedd�dd��Zedd�d	d
��Zedd�dd��Zedd�d
d��Z	edd�dd��Z
edd�dd��Zedd�dd��Zedd�dd��Z
edd�dd��Zedd�dd��Zedd�dd��Zedd�dd��Zedd�dd ��Zedd�d!d"��Zedd�d#d$��Zedd�d%d&��Zedd�d'd(��Zed)d�d*d+��Zed)d�d,d-��Zed)d�d.d/��Zdd)d0�d1d2�Zd3d�d4d5�Zd3d�d6d7�Zd8S)9�Unixa�
    On Unix/Linux, we follow the
    `XDG Basedir Spec <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_. The spec allows
    overriding directories with environment variables. The examples show are the default values, alongside the name of
    the environment variable that overrides them. Makes use of the
    `appname <platformdirs.api.PlatformDirsABC.appname>`,
    `version <platformdirs.api.PlatformDirsABC.version>`,
    `multipath <platformdirs.api.PlatformDirsABC.multipath>`,
    `opinion <platformdirs.api.PlatformDirsABC.opinion>`,
    `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    �strr
cCs,tj�dd�}|��s"tj�d�}|�|�S)z�
        :return: data directory tied to the user, e.g. ``~/.local/share/$appname/$version`` or
         ``$XDG_DATA_HOME/$appname/$version``
        Z
XDG_DATA_HOME�z~/.local/share��os�environ�get�strip�path�
expanduser�_append_app_name_and_version��selfrrrr�
user_data_dir$szUnix.user_data_dirz	list[str]cs>tj�dd�}|��s$dtj�d�}�fdd�|�tj�D�S)NZ
XDG_DATA_DIRSrz/usr/local/sharez
/usr/sharecsg|]}��|��qSr�r��.0�p�rrr�
<listcomp>4�z(Unix._site_data_dirs.<locals>.<listcomp>)rrrr�pathsep�splitrrr#r�_site_data_dirs/szUnix._site_data_dirscCs |j}|js|dStj�|�S)aZ
        :return: data directories shared by users (if `multipath <platformdirs.api.PlatformDirsABC.multipath>` is
         enabled and ``XDG_DATA_DIRS`` is set and a multi path the response is also a multi path separated by the
         OS path separator), e.g. ``/usr/local/share/$appname/$version`` or ``/usr/share/$appname/$version``
        r)r(�	multipathrr&�join�r�dirsrrr�
site_data_dir6szUnix.site_data_dircCs,tj�dd�}|��s"tj�d�}|�|�S)z�
        :return: config directory tied to the user, e.g. ``~/.config/$appname/$version`` or
         ``$XDG_CONFIG_HOME/$appname/$version``
        ZXDG_CONFIG_HOMErz	~/.configrrrrr�user_config_dirCszUnix.user_config_dircs4tj�dd�}|��sd}�fdd�|�tj�D�S)NZXDG_CONFIG_DIRSrz/etc/xdgcsg|]}��|��qSrrr r#rrr$Sr%z*Unix._site_config_dirs.<locals>.<listcomp>)rrrrr'r&rrr#r�_site_config_dirsNszUnix._site_config_dirscCs |j}|js|dStj�|�S)a2
        :return: config directories shared by users (if `multipath <platformdirs.api.PlatformDirsABC.multipath>`
         is enabled and ``XDG_CONFIG_DIRS`` is set and a multi path the response is also a multi path separated by
         the OS path separator), e.g. ``/etc/xdg/$appname/$version``
        r)r/r)rr&r*r+rrr�site_config_dirUszUnix.site_config_dircCs,tj�dd�}|��s"tj�d�}|�|�S)z�
        :return: cache directory tied to the user, e.g. ``~/.cache/$appname/$version`` or
         ``~/$XDG_CACHE_HOME/$appname/$version``
        ZXDG_CACHE_HOMErz~/.cacherrrrr�user_cache_dirbszUnix.user_cache_dircCs
|�d�S)zO:return: cache directory shared by users, e.g. ``/var/cache/$appname/$version``z
/var/cacherr#rrr�site_cache_dirmszUnix.site_cache_dircCs,tj�dd�}|��s"tj�d�}|�|�S)z�
        :return: state directory tied to the user, e.g. ``~/.local/state/$appname/$version`` or
         ``$XDG_STATE_HOME/$appname/$version``
        ZXDG_STATE_HOMErz~/.local/staterrrrr�user_state_dirrszUnix.user_state_dircCs(|j}|jr$tj�|d�}|�|�|S)zg:return: log directory tied to the user, same as `user_state_dir` if not opinionated else ``log`` in it�log)r3Zopinionrrr*Z_optionally_create_directoryrrrr�user_log_dir}s

zUnix.user_log_dircCs
tdd�S)zC:return: documents directory tied to the user, e.g. ``~/Documents``ZXDG_DOCUMENTS_DIRz~/Documents��_get_user_media_dirr#rrr�user_documents_dir�szUnix.user_documents_dircCs
tdd�S)zC:return: downloads directory tied to the user, e.g. ``~/Downloads``ZXDG_DOWNLOAD_DIRz~/Downloadsr6r#rrr�user_downloads_dir�szUnix.user_downloads_dircCs
tdd�S)zA:return: pictures directory tied to the user, e.g. ``~/Pictures``ZXDG_PICTURES_DIRz
~/Picturesr6r#rrr�user_pictures_dir�szUnix.user_pictures_dircCs
tdd�S)z=:return: videos directory tied to the user, e.g. ``~/Videos``ZXDG_VIDEOS_DIRz~/Videosr6r#rrr�user_videos_dir�szUnix.user_videos_dircCs
tdd�S)z;:return: music directory tied to the user, e.g. ``~/Music``Z
XDG_MUSIC_DIRz~/Musicr6r#rrr�user_music_dir�szUnix.user_music_dircCs
tdd�S)z?:return: desktop directory tied to the user, e.g. ``~/Desktop``ZXDG_DESKTOP_DIRz	~/Desktopr6r#rrr�user_desktop_dir�szUnix.user_desktop_dircCs^tj�dd�}|��sTtj�d�rHdt���}t|��	�sTdt���}ndt���}|�
|�S)az
        :return: runtime directory tied to the user, e.g. ``/run/user/$(id -u)/$appname/$version`` or
         ``$XDG_RUNTIME_DIR/$appname/$version``.

         For FreeBSD/OpenBSD/NetBSD, it would return ``/var/run/user/$(id -u)/$appname/$version`` if
         exists, otherwise ``/tmp/runtime-$(id -u)/$appname/$version``, if``$XDG_RUNTIME_DIR``
         is not set.
        �XDG_RUNTIME_DIRr�ZfreebsdZopenbsdZnetbsdz/var/run/user/z
/tmp/runtime-z
/run/user/)rrrr�sys�platform�
startswithrr�existsrrrrr�user_runtime_dir�s
zUnix.user_runtime_dircCs6tj�dd�}|��s,tj�d�r(d}nd}|�|�S)am
        :return: runtime directory shared by users, e.g. ``/run/$appname/$version`` or         ``$XDG_RUNTIME_DIR/$appname/$version``.

        Note that this behaves almost exactly like `user_runtime_dir` if ``$XDG_RUNTIME_DIR`` is set, but will
        fall back to paths associated to the root user instead of a regular logged-in user if it's not set.

        If you wish to ensure that a logged-in root user path is returned e.g. ``/run/user/0``, use `user_runtime_dir`
        instead.

        For FreeBSD/OpenBSD/NetBSD, it would return ``/var/run/$appname/$version`` if ``$XDG_RUNTIME_DIR`` is not set.
        r>rr?z/var/runz/run)rrrrr@rArBrrrrr�site_runtime_dir�szUnix.site_runtime_dirrcCs|�|j�S)zd:return: data path shared by users. Only return first item, even if ``multipath`` is set to ``True``)� _first_item_as_path_if_multipathr-r#rrr�site_data_path�szUnix.site_data_pathcCs|�|j�S)zj:return: config path shared by the users. Only return first item, even if ``multipath`` is set to ``True``)rFr0r#rrr�site_config_path�szUnix.site_config_pathcCs|�|j�S)ze:return: cache path shared by users. Only return first item, even if ``multipath`` is set to ``True``)rFr2r#rrr�site_cache_path�szUnix.site_cache_path)�	directoryrcCs|jr|�tj�d}t|�S)Nr)r)r'rr&r)rrJrrrrF�sz%Unix._first_item_as_path_if_multipathz
Iterator[str]ccs|jV|jEdHdS)z4:yield: all user and site configuration directories.N)r.r/r#rrr�iter_config_dirs�szUnix.iter_config_dirsccs|jV|jEdHdS)z+:yield: all user and site data directories.N)rr(r#rrr�iter_data_dirs�szUnix.iter_data_dirsN)�__name__�
__module__�__qualname__�__doc__�propertyrr(r-r.r/r0r1r2r3r5r8r9r:r;r<r=rDrErGrHrIrFrKrLrrrrrs\



rr)�env_var�fallback_tilde_pathrcCs6t|�}|dur2tj�|d���}|s2tj�|�}|S)Nr)�_get_user_dirs_folderrrrrrr)rRrSZ	media_dirrrrr7�sr7z
str | None)�keyrcCs�tt�j�d}|��r�t�}|���$}|�d|�����Wd�n1sP0Y||dvrjdS|d|�d�}|�	dt
j�d��SdS)zkReturn directory from user-dirs.dirs config file. See https://freedesktop.org/wiki/Software/xdg-user-dirs/.zuser-dirs.dirsz[top]
N�top�"z$HOME�~)
rrr.rCr�openZread_string�readr�replacerrr)rUZuser_dirs_config_path�parser�streamrrrrrT�s
2rT)rPZ
__future__rrr@Zconfigparserr�pathlibr�typingrZapirrArrr7rT�__all__rrrr�<module>s 
X
�

Youez - 2016 - github.com/yon3zu
LinuXploit