U
ʗRe @ s d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ ddl m
Z
G dd de
Zedd d
ddd
Zedd ddddZ
dgZdS ) )annotationsN) lru_cache)cast )PlatformDirsABCc @ s e Zd ZdZeddddZeddddZedddd Zeddd
dZedddd
Z eddddZ
eddddZeddddZeddddZ
dS )Androidz
Follows the guidance `from here `_. Makes use of the
`appname ` and
`version `.
strreturnc C s | ttt dS )zd:return: data directory tied to the user, e.g. ``/data/user///files/``files_append_app_name_and_versionr r _android_folderself r /builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/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 dS )z
:return: config directory tied to the user, e.g. ``/data/user///shared_prefs/``
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 dS )zj:return: cache directory tied to the user, e.g. e.g. ``/data/user///cache/``cacher r r r r user_cache_dir) s zAndroid.user_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_dir. 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///cache//log``
logr opinionospathjoinr r r r r user_log_dir3 s zAndroid.user_log_dirc C s t S )zf
:return: documents directory tied to the user e.g. ``/storage/emulated/0/Documents``
)_android_documents_folderr r r r user_documents_dir> s zAndroid.user_documents_dirc C s | 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///cache//tmp``
tmpr r! r r r user_runtime_dirE s zAndroid.user_runtime_dirN)__name__
__module____qualname____doc__propertyr r r r r r r" r$ r&