403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/platformdirs/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/platformdirs/__pycache__/android.cpython-39.opt-1.pyc
a

y��d��@s�ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
Gdd�de
�Zedd	�d
d�dd
��Zedd	�dd�dd��Z
dgZdS)�)�annotationsN)�	lru_cache)�cast�)�PlatformDirsABCc@s�eZdZdZedd�dd��Zedd�dd��Zedd�dd	��Zedd�d
d��Zedd�dd
��Z	edd�dd��Z
edd�dd��Zedd�dd��Zedd�dd��Z
dS)�Androidz�
    Follows the guidance `from here <https://android.stackexchange.com/a/216132>`_. Makes use of the
    `appname <platformdirs.api.PlatformDirsABC.appname>` and
    `version <platformdirs.api.PlatformDirsABC.version>`.
    �str��returncCs|�ttt��d�S)zd:return: data directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/files/<AppName>``�files�Z_append_app_name_and_versionrr�_android_folder��self�r�8/usr/lib/python3.9/site-packages/platformdirs/android.py�
user_data_dirszAndroid.user_data_dircCs|jS)z@:return: data directory shared by users, same as `user_data_dir`�rrrrr�
site_data_dirszAndroid.site_data_dircCs|�ttt��d�S)z
        :return: config directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/shared_prefs/<AppName>``
        Zshared_prefsrrrrr�user_config_dirszAndroid.user_config_dircCs|jS)zH:return: config directory shared by the users, same as `user_config_dir`)rrrrr�site_config_dir$szAndroid.site_config_dircCs|�ttt��d�S)zj:return: cache directory tied to the user, e.g. e.g. ``/data/user/<userid>/<packagename>/cache/<AppName>``�cacherrrrr�user_cache_dir)szAndroid.user_cache_dircCs|jS)zB:return: state directory tied to the user, same as `user_data_dir`rrrrr�user_state_dir.szAndroid.user_state_dircCs|j}|jrtj�|d�}|S)z�
        :return: log directory tied to the user, same as `user_cache_dir` if not opinionated else ``log`` in it,
          e.g. ``/data/user/<userid>/<packagename>/cache/<AppName>/log``
        �log�rZopinion�os�path�join�rrrrr�user_log_dir3szAndroid.user_log_dircCst�S)zf
        :return: documents directory tied to the user e.g. ``/storage/emulated/0/Documents``
        )�_android_documents_folderrrrr�user_documents_dir>szAndroid.user_documents_dircCs|j}|jrtj�|d�}|S)z�
        :return: runtime directory tied to the user, same as `user_cache_dir` if not opinionated else ``tmp`` in it,
          e.g. ``/data/user/<userid>/<packagename>/cache/<AppName>/tmp``
        �tmprrrrr�user_runtime_dirEszAndroid.user_runtime_dirN)�__name__�
__module__�__qualname__�__doc__�propertyrrrrrrr r"r$rrrrrs&
r)�maxsizez
str | Noner	cCsvz(ddlm}|d�}|������}WnHtypt�d�}tj	D] }|�
|�rF|�d�d}qlqFd}Yn0|S)zB:return: base folder for the Android OS or None if cannot be foundr��	autoclass�android.content.Contextz /data/(data|user/\d+)/(.+)/filesz/filesN)�jniusr,ZgetFilesDirZ
getParentFile�getAbsolutePath�	Exception�re�compile�sysr�match�split)r,�Context�result�patternrrrrr
Qs



r
rcCsLz0ddlm}|d�}|d�}|�|j���}WntyFd}Yn0|S)z,:return: documents folder for the Android OSrr+r-zandroid.os.Environmentz/storage/emulated/0/Documents)r.r,ZgetExternalFilesDirZDIRECTORY_DOCUMENTSr/r0)r,r6ZEnvironmentZ
documents_dirrrrr!fs
r!)Z
__future__rrr1r3�	functoolsr�typingrZapirrr
r!�__all__rrrr�<module>sE�

Youez - 2016 - github.com/yon3zu
LinuXploit