9ghwdZddlmZddlZddlmZmZddlmZddl m Z e rddl Z e j dkrddl m Z nddlm Z Gd d eZdS) z Base API.) annotationsN)ABCabstractmethod)Path) TYPE_CHECKING))Literalc:eZdZdZ d8d9dZd:dZd;dZeedPlatformDirsABCz-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 /srv/buildsys-work-dir/castor/build_node/builder-2/WGSG1/unpkd_srcs/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/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: desktop directory tied to the userNr/r0s ruser_desktop_dirz PlatformDirsABC.user_desktop_dirr2rcdS)z+:return: runtime directory tied to the userNr/r0s ruser_runtime_dirz PlatformDirsABC.user_runtime_dirr2rcdS)z*:return: runtime directory shared by usersNr/r0s rsite_runtime_dirz PlatformDirsABC.site_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_pathrSrc*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_pathrXrc*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_pathr]rc*t|jS)z$:return: state path tied to the user)rr>r0s ruser_state_pathzPlatformDirsABC.user_state_pathr]rc*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_pathrfrc*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_pathrXrc*t|jS)z$:return: music path tied to the user)rrJr0s ruser_music_pathzPlatformDirsABC.user_music_pathr]rc*t|jS)z&:return: desktop path tied to the user)rrLr0s ruser_desktop_pathz!PlatformDirsABC.user_desktop_pathD)***rc*t|jS)z&:return: runtime path tied to the user)rrNr0s ruser_runtime_pathz!PlatformDirsABC.user_runtime_pathrqrc*t|jS)z%:return: runtime path shared by users)rrPr0s rsite_runtime_pathz!PlatformDirsABC.site_runtime_pathrqr)NNNFFTF)r rrrrrrrrrrrrrrr)rrrr)r%rrr)rr)rr))__name__ __module__ __qualname____doc__rr)r'propertyrr1r4r6r8r:r<r>r@rBrDrFrHrJrLrNrPrRrUrWrZr\r_rarcrerhrjrlrnrprsrur/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:999^X9(((X((((X(***X****X*)))X))))X))))X)'''X'---X----X-,,,X,***X*)))X)+++X++++X++++X+++rr )ry __future__rr$abcrrpathlibrtypingrsys version_infor typing_extensionsr r/rrrs"""""" ######## .JJJ 6!!"""""""------a+a+a+a+a+ca+a+a+a+a+r