Class for path resolution utilities.
More...
#include <Path.hpp>
|
| static fs::path | normalize (const fs::path &path) |
| | Normalize a path (resolve symlinks, relative paths, etc.)
|
| |
| static bool | existsFile (const fs::path &path) |
| | Check if a file exists.
|
| |
| static bool | existsDir (const fs::path &path) |
| | Check if a directory exists.
|
| |
| static fs::path | parentDir (const fs::path &path) |
| | Get the parent directory of a path.
|
| |
| template<typename... Paths> |
| static fs::path | join (const Paths &...paths) |
| | Join multiple paths.
|
| |
| static fs::path | executableDir () |
| | Get the directory of the executable.
|
| |
| static fs::path | resolveRelativeToExe (const fs::path &relativePath) |
| | Resolve a relative path to the executable directory.
|
| |
| static fs::path | resolveRelativeToCwd (const fs::path &relativePath) |
| |
Class for path resolution utilities.
Definition at line 29 of file Path.hpp.
◆ Path() [1/3]
◆ ~Path()
◆ Path() [2/3]
| utl::Path::Path |
( |
const Path & | | ) |
|
|
delete |
◆ Path() [3/3]
| utl::Path::Path |
( |
Path && | | ) |
|
|
delete |
◆ executableDir()
| static fs::path utl::Path::executableDir |
( |
| ) |
|
|
inlinestatic |
◆ existsDir()
| static bool utl::Path::existsDir |
( |
const fs::path & | path | ) |
|
|
inlinestatic |
Check if a directory exists.
- Parameters
-
- Returns
- True if the directory exists
Definition at line 68 of file Path.hpp.
Referenced by loadPlugins().
◆ existsFile()
| static bool utl::Path::existsFile |
( |
const fs::path & | path | ) |
|
|
inlinestatic |
◆ join()
template<typename... Paths>
| static fs::path utl::Path::join |
( |
const Paths &... | paths | ) |
|
|
inlinestatic |
Join multiple paths.
- Template Parameters
-
| Paths | Variadic template for paths |
- Parameters
-
- Returns
- Joined path
Definition at line 83 of file Path.hpp.
References normalize().
◆ normalize()
| static fs::path utl::Path::normalize |
( |
const fs::path & | path | ) |
|
|
inlinestatic |
◆ operator=() [1/2]
| Path & utl::Path::operator= |
( |
const Path & | | ) |
|
|
delete |
◆ operator=() [2/2]
◆ parentDir()
| static fs::path utl::Path::parentDir |
( |
const fs::path & | path | ) |
|
|
inlinestatic |
Get the parent directory of a path.
- Parameters
-
| path | Path to get the parent directory of |
- Returns
- Parent directory of the path
Definition at line 75 of file Path.hpp.
References normalize().
◆ resolveRelativeToCwd()
| static fs::path utl::Path::resolveRelativeToCwd |
( |
const fs::path & | relativePath | ) |
|
|
inlinestatic |
◆ resolveRelativeToExe()
| static fs::path utl::Path::resolveRelativeToExe |
( |
const fs::path & | relativePath | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: