26 #include <olp/core/CoreApi.h>
48 static bool Exists(
const std::string& path);
57 static bool Remove(
const std::string& path);
71 static bool Create(
const std::string& path,
bool extend_permissions =
false);
Manages directories.
Definition: Dir.h:33
static bool Create(const std::string &path, bool extend_permissions=false)
Creates a directory and all required directories specified in the path.
static bool FileExists(const std::string &file_path)
Checks whether the provided file exists.
static uint64_t Size(const std::string &path, FilterFunction filter_fn={})
Calculates the size of a directory.
static bool Exists(const std::string &path)
Checks whether a directory exists.
static bool IsReadOnly(const std::string &path)
Checks if the current application and user has a read only access to given path.
std::function< void(const std::string &)> PathCallback
An alias for the path callback function.
Definition: Dir.h:39
static bool Remove(const std::string &path)
Removes a directory and deletes all its subfolders and files.
static void ForEachDirectory(const std::string &path, PathCallback path_fn)
Iterates through top-level directories in the provided path and calls the provided callback function ...
static std::string TempDirectory()
Gets a platform-specific temporary path.
std::function< bool(const std::string &)> FilterFunction
An alias for the filter function.
Definition: Dir.h:36
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24