관리-도구
편집 파일: android.cpython-311.pyc
� �܋f� � �� � d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ ddl m Z G d� de � � Z ed� � � dd�� � Z ed� � � dd�� � Z dgZdS )� )�annotationsN)� lru_cache)�cast� )�PlatformDirsABCc �� � e Zd ZdZedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Z edd �� � Z edd �� � Zedd�� � Zedd�� � Z d S )�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�strc �l � | � 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 r �_android_folder��selfs �{/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pkg_resources/_vendor/platformdirs/android.py� user_data_dirzAndroid.user_data_dir �* � � �0�0��c�?�;L�;L�1M�1M�w�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 �l � | � 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�;L�1M�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 �l � | � 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 �b � | j }| j r t 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"