Functions | |
| bool | IsNeighbour (const std::filesystem::path &in_rPathA, const std::filesystem::path &in_rPathB) |
| template<typename T> | |
| std::error_code | TruncateFiles (const std::filesystem::path &in_rPath, std::string_view in_extension, size_t in_max, T &&in_rrCompare) |
| std::error_code | TruncateFilesByAge (const std::filesystem::path &in_rPath, std::string_view in_extension, size_t in_max) |
| std::filesystem::path | FindInEnvironment (const std::filesystem::path &in_rFileName) |
|
inline |
Finds a file in the system environment.
| in_rFileName | The file to search for. |
|
inline |
Checks if a path is in the same directory as another.
| in_rPathA | The first path. |
| in_rPathB | The second path. |
|
inline |
Truncates specific file types in a directory down to a maximum number of files.
| in_rPath | The directory containing the files to truncate. |
| in_extension | The extension of the files to truncate. |
| in_max | The maximum number of files of the specified type that can exist in this directory. |
| in_rrCompare | The comparison method that determines how the files to be truncated should be sorted. |
|
inline |
Truncates specific file types in a directory down to a maximum number of files, sorted by age.
| in_rPath | The directory containing the files to truncate. |
| in_extension | The extension of the files to truncate. |
| in_max | The maximum number of files of the specified type that can exist in this directory. |