https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/platformdirs/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/platformdirs/__pycache__/android.cpython-310.pyc
o

�1b��@s�ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
Gdd�de
�Zedd	�ddd
��Zedd	�ddd��Z
dgZdS)�)�annotationsN)�	lru_cache)�cast�)�PlatformDirsABCc@s�eZdZdZeddd��Zeddd��Zeddd	��Zedd
d��Zeddd
��Z	eddd��Z
eddd��Zeddd��Zeddd��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>`.
    �return�strcC�|�ttt��d�S)zd:return: data directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/files/<AppName>``�files��_append_app_name_and_versionrr	�_android_folder��self�r�6/usr/lib/python3/dist-packages/platformdirs/android.py�
user_data_dir�zAndroid.user_data_dircC�|jS)z@:return: data directory shared by users, same as `user_data_dir`�rrrrr�
site_data_dir�zAndroid.site_data_dircCr
)z
        :return: config directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/shared_prefs/<AppName>``
        �shared_prefsrrrrr�user_config_dirszAndroid.user_config_dircCr)zH:return: config directory shared by the users, same as `user_config_dir`)rrrrr�site_config_dir$rzAndroid.site_config_dircCr
)zj:return: cache directory tied to the user, e.g. e.g. ``/data/user/<userid>/<packagename>/cache/<AppName>``�cacherrrrr�user_cache_dir)rzAndroid.user_cache_dircCr)zB:return: state directory tied to the user, same as `user_data_dir`rrrrr�user_state_dir.rzAndroid.user_state_dircC�|j}|jr
tj�|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�r�opinion�os�path�join�rr$rrr�user_log_dir3�zAndroid.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_dircCr)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``
        �tmpr!r&rrr�user_runtime_dirEr(zAndroid.user_runtime_dirN�rr	)�__name__�
__module__�__qualname__�__doc__�propertyrrrrrrr'r*r,rrrrrs(
r)�maxsizer�
str | NonecCszzddlm}|d�}|������}W|Sty<t�d�}tj	D]}|�
|�r6|�d�d}Y|Sq$d}Y|Sw)zB:return: base folder for the Android OS or None if cannot be foundr��	autoclass�android.content.Contextz /data/(data|user/\d+)/(.+)/filesz/filesN)�jniusr6�getFilesDir�
getParentFile�getAbsolutePath�	Exception�re�compile�sysr$�match�split)r6�Context�result�patternr$rrrrQs 
�


��rr	cCsLzddlm}|d�}|d�}|�|j���}W|Sty%d}Y|Sw)z,:return: documents folder for the Android OSrr5r7zandroid.os.Environmentz/storage/emulated/0/Documents)r8r6�getExternalFilesDir�DIRECTORY_DOCUMENTSr;r<)r6rB�Environment�
documents_dirrrrr)fs��r))rr4r-)�
__future__rr#r=r?�	functoolsr�typingr�apirrrr)�__all__rrrr�<module>sE�

https://t.me/RX1948 - 2025