$54 GRAYBYTE WORDPRESS FILE MANAGER $82

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.100
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/lib/python3.8/site-packages/pip/_internal/utils/__pycache__/

HOME
Current File : /usr/lib/python3.8/site-packages/pip/_internal/utils/__pycache__//appdirs.cpython-38.pyc
U

��.e&&�@s�dZddlmZddlZddlZddlmZmZddlm	Z	m
Z
ddlmZer\ddl
mZdd	�Zddd�Zddd�Zdd�Zdd�Zdd�Ze	r�zddlZeZWnek
r�eZYnXdd�ZdS)zd
This code was taken from https://github.com/ActiveState/appdirs and modified
to suit our purposes.
�)�absolute_importN)�PY2�	text_type)�WINDOWS�
expanduser)�MYPY_CHECK_RUNNING)�ListcCs�tr<tj�td��}tr*t|t�r*t|�}tj�	||d�}n@t
jdkr^td�}tj�	||�}nt�
dtd��}tj�	||�}|S)a5
    Return full path to the user-specific cache dir for this application.

        "appname" is the name of application.

    Typical user cache directories are:
        macOS:      ~/Library/Caches/<AppName>
        Unix:       ~/.cache/<AppName> (XDG default)
        Windows:    C:\Users\<username>\AppData\Local\<AppName>\Cache

    On Windows the only suggestion in the MSDN docs is that local settings go
    in the `CSIDL_LOCAL_APPDATA` directory. This is identical to the
    non-roaming app data dir (the default returned by `user_data_dir`). Apps
    typically put cache data somewhere *under* the given dir here. Some
    examples:
        ...\Mozilla\Firefox\Profiles\<ProfileName>\Cache
        ...\Acme\SuperApp\Cache\1.0

    OPINION: This function appends "Cache" to the `CSIDL_LOCAL_APPDATA` value.
    �CSIDL_LOCAL_APPDATAZCache�darwinz~/Library/CachesZXDG_CACHE_HOMEz~/.cache)r�os�path�normpath�_get_win_folderr�
isinstancer�_win_path_to_bytes�join�sys�platformr�getenv)�appnamer�r�?/usr/lib/python3.8/site-packages/pip/_internal/utils/appdirs.py�user_cache_dirs
rFcCs�tr,|rdpd}tj�tj�t|��|�}ndtjdkrvtj�tj�t	d�|��rbtj�t	d�|�ntj�t	d�|�}ntj�t�
dt	d��|�}|S)a�
    Return full path to the user-specific data dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "roaming" (boolean, default False) can be set True to use the Windows
            roaming appdata directory. That means that for users on a Windows
            network setup for roaming profiles, this user data will be
            sync'd on login. See
            <http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx>
            for a discussion of issues.

    Typical user data directories are:
        macOS:                  ~/Library/Application Support/<AppName>
                                if it exists, else ~/.config/<AppName>
        Unix:                   ~/.local/share/<AppName>    # or in
                                $XDG_DATA_HOME, if defined
        Win XP (not roaming):   C:\Documents and Settings\<username>\ ...
                                ...Application Data\<AppName>
        Win XP (roaming):       C:\Documents and Settings\<username>\Local ...
                                ...Settings\Application Data\<AppName>
        Win 7  (not roaming):   C:\\Users\<username>\AppData\Local\<AppName>
        Win 7  (roaming):       C:\\Users\<username>\AppData\Roaming\<AppName>

    For Unix, we follow the XDG spec and support $XDG_DATA_HOME.
    That means, by default "~/.local/share/<AppName>".
    �
CSIDL_APPDATAr	r
z~/Library/Application Support/z
~/.config/Z
XDG_DATA_HOMEz~/.local/share)rrrrr
rrr�isdirrr)r�roaming�constrrrr�
user_data_dirHs,
������rTcCsHtrt||d�}n2tjdkr&t|�}nt�dtd��}tj�||�}|S)arReturn full path to the user-specific config dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "roaming" (boolean, default True) can be set False to not use the
            Windows roaming appdata directory. That means that for users on a
            Windows network setup for roaming profiles, this user data will be
            sync'd on login. See
            <http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx>
            for a discussion of issues.

    Typical user data directories are:
        macOS:                  same as user_data_dir
        Unix:                   ~/.config/<AppName>
        Win *:                  same as user_data_dir

    For Unix, we follow the XDG spec and support $XDG_CONFIG_HOME.
    That means, by default "~/.config/<AppName>".
    )rr
ZXDG_CONFIG_HOMEz	~/.config)	rrrrrrrrr)rrrrrr�user_config_dir}s

rcs�tr&tj�td��}tj�|��g}nVtjdkrBtj�d��g}n:t�dd�}|rn�fdd�|�	tj
�D�}ng}|�d�|S)	a�Return a list of potential user-shared config dirs for this application.

        "appname" is the name of application.

    Typical user config directories are:
        macOS:      /Library/Application Support/<AppName>/
        Unix:       /etc or $XDG_CONFIG_DIRS[i]/<AppName>/ for each value in
                    $XDG_CONFIG_DIRS
        Win XP:     C:\Documents and Settings\All Users\Application ...
                    ...Data\<AppName>\
        Vista:      (Fail! "C:\ProgramData" is a hidden *system* directory
                    on Vista.)
        Win 7:      Hidden, but writeable on Win 7:
                    C:\ProgramData\<AppName>\
    �CSIDL_COMMON_APPDATAr
z/Library/Application SupportZXDG_CONFIG_DIRSz/etc/xdgcsg|]}tj�t|����qSr)rrrr)�.0�x�rrr�
<listcomp>�s�z$site_config_dirs.<locals>.<listcomp>z/etc)rrrr
rrrrr�split�pathsep�append)rrZpathlistZxdg_config_dirsrr"r�site_config_dirs�s


�
r'cCs:ddl}dddd�|}|�|jd�}|�||�\}}|S)z�
    This is a fallback technique at best. I'm not sure if using the
    registry for this guarantees us the correct answer for all CSIDL_*
    names.
    rNZAppDatazCommon AppDataz
Local AppData�rrr	z@Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders)�_winreg�OpenKey�HKEY_CURRENT_USERZQueryValueEx)�
csidl_namer)Zshell_folder_name�keyZ	directoryZ_typerrr�_get_win_folder_from_registry�s���r.cCs�dddd�|}t�d�}tj}|j�d|dd|�d}|D]}t|�dkr<d	}qVq<|rzt�d�}|j�|j|d�rz|}|jS)
N��#�r(irF�T)	�ctypesZcreate_unicode_buffer�windllZshell32ZSHGetFolderPathW�ordZkernel32ZGetShortPathNameW�value)r,Zcsidl_constZbufr4Z
has_high_char�cZbuf2rrr�_get_win_folder_with_ctypes�s&��

r8c
Cs8dD].}z|�|�WSttfk
r0YqXq|S)a�Encode Windows paths to bytes. Only used on Python 2.

    Motivation is to be consistent with other operating systems where paths
    are also returned as bytes. This avoids problems mixing bytes and Unicode
    elsewhere in the codebase. For more details and discussion see
    <https://github.com/pypa/pip/issues/3463>.

    If encoding using ASCII and MBCS fails, return the original Unicode path.
    )�ASCIIZMBCS)�encode�UnicodeEncodeError�LookupError)r�encodingrrrrs
r)F)T)�__doc__Z
__future__rrrZpip._vendor.sixrrZpip._internal.utils.compatrrZpip._internal.utils.typingr�typingrrrrr'r.r8r3r�ImportErrorrrrrr�<module>s*1
5
")



Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Mar 2024 10.19 AM
root / root
0755
__init__.cpython-38.opt-1.pyc
0.151 KB
17 Oct 2023 6.30 PM
root / root
0644
__init__.cpython-38.pyc
0.151 KB
17 Oct 2023 6.30 PM
root / root
0644
appdirs.cpython-38.opt-1.pyc
7.854 KB
17 Oct 2023 6.30 PM
root / root
0644
appdirs.cpython-38.pyc
7.854 KB
17 Oct 2023 6.30 PM
root / root
0644
compat.cpython-38.opt-1.pyc
6.679 KB
17 Oct 2023 6.30 PM
root / root
0644
compat.cpython-38.pyc
6.679 KB
17 Oct 2023 6.30 PM
root / root
0644
deprecation.cpython-38.opt-1.pyc
2.76 KB
17 Oct 2023 6.30 PM
root / root
0644
deprecation.cpython-38.pyc
2.76 KB
17 Oct 2023 6.30 PM
root / root
0644
encoding.cpython-38.opt-1.pyc
1.218 KB
17 Oct 2023 6.30 PM
root / root
0644
encoding.cpython-38.pyc
1.218 KB
17 Oct 2023 6.30 PM
root / root
0644
filesystem.cpython-38.opt-1.pyc
2.708 KB
17 Oct 2023 6.30 PM
root / root
0644
filesystem.cpython-38.pyc
2.708 KB
17 Oct 2023 6.30 PM
root / root
0644
filetypes.cpython-38.opt-1.pyc
0.543 KB
17 Oct 2023 6.30 PM
root / root
0644
filetypes.cpython-38.pyc
0.543 KB
17 Oct 2023 6.30 PM
root / root
0644
glibc.cpython-38.opt-1.pyc
2.204 KB
17 Oct 2023 6.30 PM
root / root
0644
glibc.cpython-38.pyc
2.204 KB
17 Oct 2023 6.30 PM
root / root
0644
hashes.cpython-38.opt-1.pyc
4.047 KB
17 Oct 2023 6.30 PM
root / root
0644
hashes.cpython-38.pyc
4.047 KB
17 Oct 2023 6.30 PM
root / root
0644
inject_securetransport.cpython-38.opt-1.pyc
0.91 KB
17 Oct 2023 6.30 PM
root / root
0644
inject_securetransport.cpython-38.pyc
0.91 KB
17 Oct 2023 6.30 PM
root / root
0644
logging.cpython-38.opt-1.pyc
8.944 KB
17 Oct 2023 6.30 PM
root / root
0644
logging.cpython-38.pyc
8.944 KB
17 Oct 2023 6.30 PM
root / root
0644
marker_files.cpython-38.opt-1.pyc
0.906 KB
17 Oct 2023 6.30 PM
root / root
0644
marker_files.cpython-38.pyc
0.906 KB
17 Oct 2023 6.30 PM
root / root
0644
misc.cpython-38.opt-1.pyc
22.834 KB
17 Oct 2023 6.30 PM
root / root
0644
misc.cpython-38.pyc
22.834 KB
17 Oct 2023 6.30 PM
root / root
0644
models.cpython-38.opt-1.pyc
1.879 KB
17 Oct 2023 6.30 PM
root / root
0644
models.cpython-38.pyc
1.879 KB
17 Oct 2023 6.30 PM
root / root
0644
packaging.cpython-38.opt-1.pyc
2.547 KB
17 Oct 2023 6.30 PM
root / root
0644
packaging.cpython-38.pyc
2.547 KB
17 Oct 2023 6.30 PM
root / root
0644
setuptools_build.cpython-38.opt-1.pyc
1.229 KB
17 Oct 2023 6.30 PM
root / root
0644
setuptools_build.cpython-38.pyc
1.229 KB
17 Oct 2023 6.30 PM
root / root
0644
subprocess.cpython-38.opt-1.pyc
5.467 KB
17 Oct 2023 6.30 PM
root / root
0644
subprocess.cpython-38.pyc
5.467 KB
17 Oct 2023 6.30 PM
root / root
0644
temp_dir.cpython-38.opt-1.pyc
4.739 KB
17 Oct 2023 6.30 PM
root / root
0644
temp_dir.cpython-38.pyc
4.827 KB
17 Oct 2023 6.30 PM
root / root
0644
typing.cpython-38.opt-1.pyc
1.255 KB
17 Oct 2023 6.30 PM
root / root
0644
typing.cpython-38.pyc
1.255 KB
17 Oct 2023 6.30 PM
root / root
0644
ui.cpython-38.opt-1.pyc
11.479 KB
17 Oct 2023 6.30 PM
root / root
0644
ui.cpython-38.pyc
11.533 KB
17 Oct 2023 6.30 PM
root / root
0644
unpacking.cpython-38.opt-1.pyc
6.044 KB
17 Oct 2023 6.30 PM
root / root
0644
unpacking.cpython-38.pyc
6.044 KB
17 Oct 2023 6.30 PM
root / root
0644
urls.cpython-38.opt-1.pyc
1.318 KB
17 Oct 2023 6.30 PM
root / root
0644
urls.cpython-38.pyc
1.431 KB
17 Oct 2023 6.30 PM
root / root
0644
virtualenv.cpython-38.opt-1.pyc
0.857 KB
17 Oct 2023 6.30 PM
root / root
0644
virtualenv.cpython-38.pyc
0.857 KB
17 Oct 2023 6.30 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF