|
CommonLib
|
Functions | |
| bool | is_neighbour (const std::filesystem::path &in_left, const std::filesystem::path &in_right) |
| template<typename T> | |
| std::error_code | truncate_files (const std::filesystem::path &in_path, std::string_view in_extension, size_t in_max, T &&in_compare_func) |
| std::error_code | truncate_files_by_age (const std::filesystem::path &in_path, std::string_view in_extension, size_t in_max=10) |
|
inline |
Checks if a path is in the same directory as another.
| in_left | The first path. |
| in_right | The second path. |
|
inline |
Truncates specific file types in a directory down to a maximum number of files.
| in_path | 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_compare_func | 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_path | 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. |