Storage
Last update: 16.07.2025 63 virtual Error matchFiles(const URL& pPath,std::string pWildcard,std::vector<URL>& pMatchFiles) = 0;
72 virtual Error compressFiles(const URL& pRootFolder,std::vector<URL>& pSourceFiles,const URL& pTargetArchive) = 0;
The return state / error value of a Project function call.
Definition: Error.hpp:11
virtual Error getFileChecksum(const URL &pFile, std::string &pChecksum)=0
Compute a checksum for the specified file.
virtual Error moveFile(const URL &pSource, const URL &pTarget)=0
Rename the file or folder.
virtual Error compressFiles(const URL &pRootFolder, std::vector< URL > &pSourceFiles, const URL &pTargetArchive)=0
Compress a list of files into a new zipped archive.
virtual Error createFolder(const URL &pParentPath, const Path &pFolderPath)=0
Create a folder in the specified URL, using the specified name.
virtual bool isFolder(const URL &pPath)=0
Indicates if a folder exists at the specified URL.
virtual Error matchFiles(const URL &pPath, std::string pWildcard, std::vector< URL > &pMatchFiles)=0
File query by wildcard pattern in the specified URL.
virtual bool isFile(const URL &pPath)=0
Indicates if a file exists at the specified URL.
virtual Error eraseFile(const URL &pFile)=0
Erase the file at the specified location.
virtual Error extractFile(const URL &pArchive, const URL &pTargetLocation)=0
Extract a zipped archive to the specified location.
virtual Error getFileTimestamp(const URL &pFile, int &pTime)=0
Compute a timestamp for the specified file.
virtual Error copyFile(const std::string &pSource, const std::string &pTarget)=0
Copy file from source to location, can be two different URL types.
virtual Error eraseFolder(const URL &pFile, EraseOptions pRecursive)=0
Erase the folder and content at the specified location.
virtual std::string getFileCompressionSuffix() const =0
Returns the required file suffix for compressFile API.
The address of a local or remote file, using the URI format.
Definition: URL.hpp:12
Definition: API.dox:1