platformdirs 0.1.0
📂 Python's platformdirs module for C++
|
Namespaces | |
namespace | api |
namespace | macos |
namespace | unix |
namespace | utils |
namespace | version |
namespace | windows |
Typedefs | |
using | platform_dirs |
using | app_dirs = platform_dirs |
using | platform_dirs_abc = platformdirs::api::platform_dirs_abc |
Functions | |
std::string | user_data_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::string | site_data_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool multipath=false, bool ensure_exists=false) |
std::string | user_config_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::string | site_config_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool multipath=false, bool ensure_exists=false) |
std::string | user_cache_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::string | site_cache_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool multipath=false, bool ensure_exists=false) |
std::string | user_state_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::string | user_log_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::string | user_documents_dir () |
std::string | user_downloads_dir () |
std::string | user_pictures_dir () |
std::string | user_videos_dir () |
std::string | user_music_dir () |
std::string | user_desktop_dir () |
std::string | user_runtime_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::string | site_runtime_dir (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool multipath=false, bool ensure_exists=false) |
std::filesystem::path | user_data_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::filesystem::path | site_data_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool multipath=false, bool ensure_exists=false) |
std::filesystem::path | user_config_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::filesystem::path | site_config_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool multipath=false, bool ensure_exists=false) |
std::filesystem::path | user_cache_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::filesystem::path | site_cache_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool multipath=false, bool ensure_exists=false) |
std::filesystem::path | user_state_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::filesystem::path | user_log_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::filesystem::path | user_documents_path () |
std::filesystem::path | user_downloads_path () |
std::filesystem::path | user_pictures_path () |
std::filesystem::path | user_videos_path () |
std::filesystem::path | user_music_path () |
std::filesystem::path | user_desktop_path () |
std::filesystem::path | user_runtime_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool roaming=false, bool ensure_exists=false) |
std::filesystem::path | site_runtime_path (const std::optional< std::string > &appname=std::nullopt, const std::variant< std::string, std::nullopt_t, bool > &appauthor=std::nullopt, const std::optional< std::string > &version=std::nullopt, bool multipath=false, bool ensure_exists=false) |
Variables | |
constexpr auto & | version_ = platformdirs::version::version |
constexpr auto & | version_info = platformdirs::version::version_tuple |
using platformdirs::app_dirs = platform_dirs |
Alias the current concrete implementation chosen at compile-time.
std::string platformdirs::site_cache_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | multipath = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
multipath | See platform_dirs_abc::multipath |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::site_cache_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | multipath = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
multipath | See platform_dirs_abc::multipath |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::site_config_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | multipath = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
multipath | See platform_dirs_abc::multipath |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::site_config_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | multipath = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
multipath | See platform_dirs_abc::multipath |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::site_data_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | multipath = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
multipath | See platform_dirs_abc::multipath |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::site_data_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | multipath = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
multipath | See platform_dirs_abc::multipath |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::site_runtime_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | multipath = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
multipath | See platform_dirs_abc::multipath |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::site_runtime_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | multipath = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
multipath | See platform_dirs_abc::multipath |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::user_cache_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::user_cache_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::user_config_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::user_config_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::user_data_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::user_data_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::user_desktop_dir | ( | ) |
std::filesystem::path platformdirs::user_desktop_path | ( | ) |
std::string platformdirs::user_documents_dir | ( | ) |
std::filesystem::path platformdirs::user_documents_path | ( | ) |
std::string platformdirs::user_downloads_dir | ( | ) |
std::filesystem::path platformdirs::user_downloads_path | ( | ) |
std::string platformdirs::user_log_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::user_log_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::user_music_dir | ( | ) |
std::filesystem::path platformdirs::user_music_path | ( | ) |
std::string platformdirs::user_pictures_dir | ( | ) |
std::filesystem::path platformdirs::user_pictures_path | ( | ) |
std::string platformdirs::user_runtime_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::user_runtime_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::user_state_dir | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::filesystem::path platformdirs::user_state_path | ( | const std::optional< std::string > & | appname = std::nullopt, |
const std::variant< std::string, std::nullopt_t, bool > & | appauthor = std::nullopt, | ||
const std::optional< std::string > & | version = std::nullopt, | ||
bool | roaming = false, | ||
bool | ensure_exists = false ) |
appname | See platform_dirs_abc::appname |
appauthor | See platform_dirs_abc::appauthor |
version | See platform_dirs_abc::version |
roaming | See platform_dirs_abc::roaming |
ensure_exists | See platform_dirs_abc::ensure_exists |
std::string platformdirs::user_videos_dir | ( | ) |
std::filesystem::path platformdirs::user_videos_path | ( | ) |
|
constexpr |
Renamed slightly because there's a module name (namespace) and function name with the same "version" identifier.
|
constexpr |