libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::Filesystem::UserDirectories Namespace Reference

Functions

std::filesystem::path get (UserDirectory directory)
 Gets the path of a user directory.
 
std::filesystem::path get (ApplicationUserDirectory directory, const std::string &appName)
 Gets the path of an application user directory.
 

Function Documentation

◆ get() [1/2]

std::filesystem::path Nickvision::Filesystem::UserDirectories::get ( ApplicationUserDirectory directory,
const std::string & appName )

Gets the path of an application user directory.

Supports XDG directories on Linux.

Parameters
directoryThe ApplicationUserDirectory to get the path of
appNameThe application name
Returns
The path of the directory

◆ get() [2/2]

std::filesystem::path Nickvision::Filesystem::UserDirectories::get ( UserDirectory directory)

Gets the path of a user directory.

Supports XDG directories on Linux.

Parameters
directoryThe UserDirectory to get the path of
Returns
The path of the directory