관리-도구
편집 파일: android.cpython-312.pyc
� t��e� � � � d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ ddl m Z G d� de � Z ed� � dd �� Z ed� � d d�� Z dgZy)� )�annotationsN)� lru_cache)�cast� )�PlatformDirsABCc � � e Zd ZdZedd�� Zedd�� Zedd�� Zedd�� Zedd�� Z edd�� Z edd�� Zedd �� Zedd �� Z y) �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>`. c �R � | j t t t � � d� S )zd:return: data directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/files/<AppName>``�files��_append_app_name_and_versionr �str�_android_folder��selfs ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pkg_resources/_vendor/platformdirs/android.py� user_data_dirzAndroid.user_data_dir �! � � �0�0��c�?�;L�1M�w�W�W� c � � | j S )z@:return: data directory shared by users, same as `user_data_dir`�r r s r � site_data_dirzAndroid.site_data_dir � � � �!�!�!r c �R � | j t t t � � d� S )z :return: config directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/shared_prefs/<AppName>`` �shared_prefsr r s r �user_config_dirzAndroid.user_config_dir s! � � �0�0��c�?�;L�1M�~�^�^r c � � | j S )zH:return: config directory shared by the users, same as `user_config_dir`)r r s r �site_config_dirzAndroid.site_config_dir$ s � � �#�#�#r c �R � | j t t t � � d� S )zj:return: cache directory tied to the user, e.g. e.g. ``/data/user/<userid>/<packagename>/cache/<AppName>``�cacher r s r �user_cache_dirzAndroid.user_cache_dir) r r c � � | j S )zB:return: state directory tied to the user, same as `user_data_dir`r r s r �user_state_dirzAndroid.user_state_dir. r r c �v � | j }| j r t j j |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�r r) s r �user_log_dirzAndroid.user_log_dir3 �/ � � �"�"���<�<��7�7�<�<��e�,�D��r c � � t � S )zf :return: documents directory tied to the user e.g. ``/storage/emulated/0/Documents`` )�_android_documents_folderr s r �user_documents_dirzAndroid.user_documents_dir>