file new in Git master
Path.hNamespace Corrade::
Namespaces
- namespace Corrade
- Root namespace.
- namespace Corrade::Utility
- Utilities.
- namespace Corrade::Utility::Path new in Git master
- Filesystem utilities.
Classes
- class Corrade::Utility::Path::MapDeleter new in Git master
- Memory-mapped file deleter.
Enums
- enum class ListFlag: unsigned char { SkipDotAndDotDot = 1 << 0, SkipFiles = 1 << 1, SkipDirectories = 1 << 2, SkipSpecial = 1 << 3, SortAscending = (1 << 4) | (1 << 5), SortDescending = 1 << 5 } new in Git master
- Directory listing flag.
Typedefs
- using ListFlags = Containers::EnumSet<ListFlag> new in Git master
- Directory listing flags.
Functions
- auto fromNativeSeparators(Containers::String path) -> Containers::String new in Git master
- Convert path from native separators.
- auto toNativeSeparators(Containers::String path) -> Containers::String new in Git master
- Convert path to native separators.
- auto split(Containers::StringView path) -> Containers::Pair<Containers::StringView, Containers::StringView> new in Git master
- Split path and filename.
- auto splitExtension(Containers::StringView path) -> Containers::Pair<Containers::StringView, Containers::StringView> new in Git master
- Split basename and extension.
- auto join(Containers::StringView path, Containers::StringView filename) -> Containers::String new in Git master
- Join path and filename.
- auto join(const Containers::StringIterable& paths) -> Containers::String new in Git master
- Join paths.
- auto exists(Containers::StringView filename) -> bool new in Git master
- Check if given file or directory exists.
- auto isDirectory(Containers::StringView path) -> bool new in Git master
- Check if given path is a directory.
- auto make(Containers::StringView path) -> bool new in Git master
- Make a path.
- auto remove(Containers::StringView path) -> bool new in Git master
- Remove a file or a directory.
- auto move(Containers::StringView from, Containers::StringView to) -> bool new in Git master
- Move given file or directory.
- auto libraryLocation(const void* address) -> Containers::Optional<Containers::String> new in Git master
- Shared library location containing given address.
-
template<class R, class ... Args>auto libraryLocation(R(*)(Args...) address) -> Containers::Optional<Containers::String> new in Git master
- auto executableLocation() -> Containers::Optional<Containers::String> new in Git master
- Executable location.
- auto currentDirectory() -> Containers::Optional<Containers::String> new in Git master
- Current directory.
- auto homeDirectory() -> Containers::Optional<Containers::String> new in Git master
- Current user's home directory.
- auto configurationDirectory(Containers::StringView name) -> Containers::Optional<Containers::String> new in Git master
- Application configuration directory.
- auto temporaryDirectory() -> Containers::Optional<Containers::String> new in Git master
- Temporary directory.
- auto list(Containers::StringView path, ListFlags flags = {}) -> Containers::Optional<Containers::Array<Containers::String>> new in Git master
- List directory contents.
-
auto size(Containers::StringView filename) -> Containers::Optional<std::
size_t> new in Git master - File size.
-
auto lastModification(Containers::StringView filename) -> Containers::Optional<std::
int64_t> new in Git master - File last modification timestamp.
- auto read(Containers::StringView filename) -> Containers::Optional<Containers::Array<char>> new in Git master
- Read a file into an array.
- auto readString(Containers::StringView filename) -> Containers::Optional<Containers::String> new in Git master
- Read a file into a string.
- auto write(Containers::StringView filename, Containers::ArrayView<const void> data) -> bool new in Git master
- Write an array into a file.
- auto write(Containers::StringView filename, const char* string) -> bool deleted new in Git master
- Writing a C string into a file is not allowed.
- auto append(Containers::StringView filename, Containers::ArrayView<const void> data) -> bool new in Git master
- Append an array to a file.
- auto append(Containers::StringView filename, const char* string) -> bool deleted new in Git master
- Appending a C string to a file is not allowed.
- auto copy(Containers::StringView from, Containers::StringView to) -> bool new in Git master
- Copy a file.
- auto map(Containers::StringView filename) -> Containers::Optional<Containers::Array<char, MapDeleter>> new in Git master
- Map a file for reading and writing.
- auto mapRead(Containers::StringView filename) -> Containers::Optional<Containers::Array<const char, MapDeleter>> new in Git master
- Map a file for reading.
-
auto mapWrite(Containers::StringView filename,
std::
size_t size) -> Containers::Optional<Containers::Array<char, MapDeleter>> new in Git master - Map a file for writing.