\bg$#vdZddlmZddlZddlmZmZddlmZddl m Z e rddl m Z m Z Gdd eZ dS) z Base API.) annotationsN)ABCabstractmethod)Path) TYPE_CHECKING)IteratorLiteralczeZdZdZ dBdCdZdDdZdEdZeedFdZ eedFdZ eedFdZ eedFdZ eedFdZ eedFdZeedFdZeedFdZeedFdZeedFd ZeedFd!ZeedFd"ZeedFd#ZeedFd$ZeedFd%ZeedFd&ZedGd(ZedGd)ZedGd*ZedGd+ZedGd,ZedGd-ZedGd.ZedGd/Z edGd0Z!edGd1Z"edGd2Z#edGd3Z$edGd4Z%edGd5Z&edGd6Z'edGd7Z(dHd9Z)dHd:Z*dHd;Z+dHd<Z,dId>Z-dId?Z.dId@Z/dIdAZ0dS)JPlatformDirsABCz-Abstract base class for platform directories.NFTappname str | None appauthorstr | None | Literal[False]versionroamingbool multipathopinion ensure_existsreturnNonecp||_||_ ||_ ||_ ||_ ||_||_dS)aY 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 t/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/setuptools/_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_versionPsd122h < , MM$, ' ' '| , dl+++w|DG-f--- ))$/// rr$c`|jr&t|dddSdS)NT)parentsexist_ok)rrmkdirrr$s rr&z,PlatformDirsABC._optionally_create_directoryZs<   : JJ  TD  9 9 9 9 9 : :rcdS)z(:return: data directory tied to the userNrs r user_data_dirzPlatformDirsABC.user_data_dir^rcdS)z':return: data directory shared by usersNr/r0s r site_data_dirzPlatformDirsABC.site_data_dircr2rcdS)z*:return: config directory tied to the userNr/r0s ruser_config_dirzPlatformDirsABC.user_config_dirhr2rcdS)z-:return: config directory shared by the usersNr/r0s rsite_config_dirzPlatformDirsABC.site_config_dirmr2rcdS)z):return: cache directory tied to the userNr/r0s ruser_cache_dirzPlatformDirsABC.user_cache_dirrr2rcdS)z(:return: cache directory shared by usersNr/r0s rsite_cache_dirzPlatformDirsABC.site_cache_dirwr2rcdS)z):return: state directory tied to the userNr/r0s ruser_state_dirzPlatformDirsABC.user_state_dir|r2rcdS)z':return: log directory tied to the userNr/r0s r user_log_dirzPlatformDirsABC.user_log_dirr2rcdS)z-:return: documents directory tied to the userNr/r0s ruser_documents_dirz"PlatformDirsABC.user_documents_dirr2rcdS)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 a 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 Iterator[str]c#.K|jV|jVdS)z4:yield: all user and site configuration directories.N)r6r8r0s riter_config_dirsz PlatformDirsABC.iter_config_dirss*""""""""""rc#.K|jV|jVdS)z+:yield: all user and site data directories.N)r1r4r0s riter_data_dirszPlatformDirsABC.iter_data_dirss*          rc#.K|jV|jVdS)z,:yield: all user and site cache directories.N)r:r<r0s riter_cache_dirszPlatformDirsABC.iter_cache_dirss*!!!!!!!!!!rc#.K|jV|jVdS)z.:yield: all user and site runtime directories.N)rNrPr0s riter_runtime_dirsz!PlatformDirsABC.iter_runtime_dirs s*##########rIterator[Path]c#ZK|D]}t|VdS)z.:yield: all user and site configuration paths.N)rxrr-s riter_config_pathsz!PlatformDirsABC.iter_config_pathss@))++  Dt**      rc#ZK|D]}t|VdS)z%:yield: all user and site data paths.N)rzrr-s riter_data_pathszPlatformDirsABC.iter_data_pathss@''))  Dt**      rc#ZK|D]}t|VdS)z&:yield: all user and site cache paths.N)r|rr-s riter_cache_pathsz PlatformDirsABC.iter_cache_pathss@((**  Dt**      rc#ZK|D]}t|VdS)z(:yield: all user and site runtime paths.N)r~rr-s riter_runtime_pathsz"PlatformDirsABC.iter_runtime_paths!s@**,,  Dt**      r)NNNFFTF)r r rrrr rrrrrrrrrr)rrrr)r$rrr)rr)rr)rrv)rr)1__name__ __module__ __qualname____doc__rr(r&propertyrr1r4r6r8r:r<r>r@rBrDrFrHrJrLrNrPrRrUrWrZr\r_rarcrerhrjrlrnrprsrurxrzr|r~rrrrr/rrr r s77#15"#= = = = = ~::::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 )r __future__rr#abcrrpathlibrtypingrrr r r/rrrs"""""" ######## )((((((((VVVVVcVVVVVr