35 swap(_path, path._path);
45 #if defined(FMT_VERSION)
47 struct fmt::formatter<
CppCommon::Path> : formatter<std::string_view>
49 template <
typename FormatContext>
Path & Assign(const Path &path)
Assign the given path to the current one.
Path & Concat(const Path &path)
Concatenate the given path to the current one.
bool IsOther() const
Is the path points to special file (block, character, FIFO, socket)?
void swap(Path &path) noexcept
Swap two instances.
FileType type() const
Get the path file type.
const std::string & string() const noexcept
Get the path value as UTF-8 string.
std::string _path
Path string.
#define ENUM_FLAGS(type)
Register a new enum-based flags macro.
C++ Common project definitions.
std::string format(fmt::format_string< T... > pattern, T &&... args)
Format string.
@ NONE
None (file not found)
void swap(FileCache &cache1, FileCache &cache2) noexcept
void swap(Path &path1, Path &path2) noexcept
FilePermissions
File permissions (Unix specific)
FileAttributes
File attributes (Windows specific)