iddZddlmZddlZddlmZmZddlmZddl m Z e rddl Z e j dkrddl m Z nddlm Z Gd d eZdS) z Base API.) annotationsN)ABCabstractmethod)Path) TYPE_CHECKING))LiteralceZdZdZ d4d5dZd6dZd7dZeed8dZ eed8dZ eed8dZ eed8dZ eed8dZ eed8dZeed8dZeed8dZeed8dZeed8d Zeed8d!Zeed8d"Zeed8d#Zeed8d$Zed9d&Zed9d'Zed9d(Zed9d)Zed9d*Zed9d+Zed9d,Zed9d-Zed9d.Zed9d/Z ed9d0Z!ed9d1Z"ed9d2Z#ed9d3Z$dS):PlatformDirsABCz-Abstract base class for platform directories.NFTappname str | None appauthorstr | None | Literal[False]versionroamingbool multipathopinion ensure_existsreturnNonecp||_||_ ||_ ||_ ||_ ||_||_dS)aX Create a new platform directory. :param appname: See `appname`. :param appauthor: See `appauthor`. :param version: See `version`. :param roaming: See `roaming`. :param multipath: See `multipath`. :param opinion: See `opinion`. :param ensure_exists: See `ensure_exists`. N)r rrrrrr)selfr rrrrrrs Q/opt/cloudlinux/venv/lib/python3.11/site-packages/pip/_vendor/platformdirs/api.py__init__zPlatformDirsABC.__init__s\* "     #  *  basestrct|dd}|jr;||j|jr||jt jj|dg|R}|||S)Nr)listr appendrospathjoin_optionally_create_directory)rrparamsr%s r_append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_versionGsd122h < , MM$, ' ' '| , dl+++w|DG-f--- ))$/// rr%c`|jr&t|dddSdS)NT)parentsexist_ok)rrmkdir)rr%s rr'z,PlatformDirsABC._optionally_create_directoryQs<   : JJ  TD  9 9 9 9 9 : :rcdS)z(:return: data directory tied to the userNrs r user_data_dirzPlatformDirsABC.user_data_dirUrcdS)z':return: data directory shared by usersNr/r0s r site_data_dirzPlatformDirsABC.site_data_dirZr2rcdS)z*:return: config directory tied to the userNr/r0s ruser_config_dirzPlatformDirsABC.user_config_dir_r2rcdS)z-:return: config directory shared by the usersNr/r0s rsite_config_dirzPlatformDirsABC.site_config_dirdr2rcdS)z):return: cache directory tied to the userNr/r0s ruser_cache_dirzPlatformDirsABC.user_cache_dirir2rcdS)z(:return: cache directory shared by usersNr/r0s rsite_cache_dirzPlatformDirsABC.site_cache_dirnr2rcdS)z):return: state directory tied to the userNr/r0s ruser_state_dirzPlatformDirsABC.user_state_dirsr2rcdS)z':return: log directory tied to the userNr/r0s r user_log_dirzPlatformDirsABC.user_log_dirxr2rcdS)z-:return: documents directory tied to the userNr/r0s ruser_documents_dirz"PlatformDirsABC.user_documents_dir}r2rcdS)z-:return: downloads directory tied to the userNr/r0s ruser_downloads_dirz"PlatformDirsABC.user_downloads_dirr2rcdS)z,:return: pictures directory tied to the userNr/r0s ruser_pictures_dirz!PlatformDirsABC.user_pictures_dirr2rcdS)z*:return: videos directory tied to the userNr/r0s ruser_videos_dirzPlatformDirsABC.user_videos_dirr2rcdS)z):return: music directory tied to the userNr/r0s ruser_music_dirzPlatformDirsABC.user_music_dirr2rcdS)z+:return: runtime directory tied to the userNr/r0s ruser_runtime_dirz PlatformDirsABC.user_runtime_dirr2rrc*t|jS)z#:return: data path tied to the user)rr1r0s ruser_data_pathzPlatformDirsABC.user_data_pathD&'''rc*t|jS)z":return: data path shared by users)rr4r0s rsite_data_pathzPlatformDirsABC.site_data_pathrOrc*t|jS)z%:return: config path tied to the user)rr6r0s ruser_config_pathz PlatformDirsABC.user_config_pathD()))rc*t|jS)z(:return: config path shared by the users)rr8r0s rsite_config_pathz PlatformDirsABC.site_config_pathrTrc*t|jS)z$:return: cache path tied to the user)rr:r0s ruser_cache_pathzPlatformDirsABC.user_cache_pathD'(((rc*t|jS)z#:return: cache path shared by users)rr<r0s rsite_cache_pathzPlatformDirsABC.site_cache_pathrYrc*t|jS)z$:return: state path tied to the user)rr>r0s ruser_state_pathzPlatformDirsABC.user_state_pathrYrc*t|jS)z":return: log path tied to the user)rr@r0s r user_log_pathzPlatformDirsABC.user_log_pathsD%&&&rc*t|jS)z(:return: documents path tied to the user)rrBr0s ruser_documents_pathz#PlatformDirsABC.user_documents_pathD+,,,rc*t|jS)z(:return: downloads path tied to the user)rrDr0s ruser_downloads_pathz#PlatformDirsABC.user_downloads_pathrbrc*t|jS)z':return: pictures path tied to the user)rrFr0s ruser_pictures_pathz"PlatformDirsABC.user_pictures_pathsD*+++rc*t|jS)z%:return: videos path tied to the user)rrHr0s ruser_videos_pathz PlatformDirsABC.user_videos_pathrTrc*t|jS)z$:return: music path tied to the user)rrJr0s ruser_music_pathzPlatformDirsABC.user_music_pathrYrc*t|jS)z&:return: runtime path tied to the user)rrLr0s ruser_runtime_pathz!PlatformDirsABC.user_runtime_pathsD)***r)NNNFFTF)r rrrrrrrrrrrrrrr)rrrr)r%rrr)rr)rr)%__name__ __module__ __qualname____doc__rr)r'propertyrr1r4r6r8r:r<r>r@rBrDrFrHrJrLrNrQrSrVrXr[r]r_rardrfrhrjrlr/rrr r s77#15"#0 0 0 0 0 d::::777^X7666^X6999^X9<<<^X<888^X8777^X7888^X8666^X6<<<^X<<<<^X<;;;^X;999^X9888^X8:::^X:(((X((((X(***X****X*)))X))))X))))X)'''X'---X----X-,,,X,***X*)))X)+++X+++rr )rp __future__rr$abcrrpathlibrtypingrsys version_infor pip._vendor.typing_extensionsr r/rrrys"""""" ######## :JJJ 6!!"""""""999999M+M+M+M+M+cM+M+M+M+M+r