17#ifndef BIFROST_FILE_UTILS_H
18#define BIFROST_FILE_UTILS_H
String view class (similar to std::string_view)
Definition of macros for symbol visibility.
Amino::String filename(Amino::StringView baseName, long long frame, Amino::StringView targetExtension)
Construct a file name with the specified frame number and extension. If the file name contains # or @...
bool isAbsolute(Amino::StringView path)
Checks if a path is absolute.
bool currentPath(Amino::String ¤tPath, Amino::String *errorMessage=nullptr)
Returns the current path.
Amino::String makePreferred(Amino::StringView path)
Convert directory separator characters in the given string to the operating system's preferred charac...
bool createDirectories(Amino::StringView path, Amino::String *errorMessage=nullptr)
Creates the directories in path that do not exist.
Amino::String getRelativePath(Amino::StringView path, Amino::StringView baseDirectory)
Return the valid relative path of the input path with respect to baseDirectory.
bool exists(Amino::StringView path, Amino::String *errorMessage=nullptr)
Verify if a path exists.
bool tempDirectoryPath(Amino::String &tempDirectoryPath, Amino::String *errorMessage=nullptr)
Returns the directory location suitable for temporary files.
Amino::String extractFilename(Amino::StringView filePath)
Get the filename (with extension) from a file path. The input is first processed by makePreferred....
Amino::String filePath(Amino::StringView directory, Amino::StringView filename)
Create a file path from a directory and an filename in an operating system / independent way.
bool removeAll(Amino::StringView path, Amino::String *errorMessage=nullptr)
Amino::String extractParentPath(Amino::StringView path)
Returns the parent path of path. The input is first processed by makePreferred. Then the extraction f...
bool filePathExists(Amino::StringView filePath, Amino::String *out_errorMessage=nullptr)
Verify if a file path exists.
The string class used by Amino.
String view class (similar to std::string_view).