관리-도구
편집 파일: android.cpython-38.pyc
U )�e� � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl mZ G dd � d e�Zedd �dd�d d��Z edd �dd�dd��Zedd �dd�dd��Zedd �dd�dd��Zedd �dd�dd��Zedd �dd�dd��Zd gZdS )zAndroid.� )�annotationsN)� lru_cache)�cast� )�PlatformDirsABCc @ s0 e Zd ZdZedd�dd��Zedd�dd��Zedd�dd ��Zedd�d d��Zedd�dd ��Z edd�dd��Z edd�dd��Zedd�dd��Zedd�dd��Z edd�dd��Zedd�dd��Zedd�dd��Zedd�dd��Zedd�dd��Zedd�d d!��Zedd�d"d#��Zd$S )%�Androida$ Follows the guidance `from here <https://android.stackexchange.com/a/216132>`_. Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`, `version <platformdirs.api.PlatformDirsABC.version>`, `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`. �str��returnc C s | � ttt� �d�S )zd:return: data directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/files/<AppName>``�files��_append_app_name_and_versionr r �_android_folder��self� r �B/opt/hc_python/lib/python3.8/site-packages/platformdirs/android.py� user_data_dir s zAndroid.user_data_dirc C s | j S )z@:return: data directory shared by users, same as `user_data_dir`�r r r r r � site_data_dir s zAndroid.site_data_dirc C s | � ttt� �d�S )z� :return: config directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/shared_prefs/<AppName>`` Zshared_prefsr r r r r �user_config_dir s zAndroid.user_config_dirc C s | j S )zH:return: config directory shared by the users, same as `user_config_dir`)r r r r r �site_config_dir( s zAndroid.site_config_dirc C s | � ttt� �d�S )zj:return: cache directory tied to the user, e.g. e.g. ``/data/user/<userid>/<packagename>/cache/<AppName>``�cacher r r r r �user_cache_dir- s zAndroid.user_cache_dirc C s | j S )zB:return: cache directory shared by users, same as `user_cache_dir`)r r r r r �site_cache_dir2 s zAndroid.site_cache_dirc C s | j S )zB:return: state directory tied to the user, same as `user_data_dir`r r r r r �user_state_dir7 s zAndroid.user_state_dirc C s | 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�r �opinion�os�path�join�r r r r r �user_log_dir<