|
| static FileInfo | GetFileInfo (const std::filesystem::path &path) |
| | Get detailed file information.
|
| |
| static CopyResult | CopyFiles (const std::vector< std::filesystem::path > &sources, const std::filesystem::path &destination, bool overwrite=false) |
| | Copy files with progress tracking.
|
| |
| static CopyResult | MoveFiles (const std::vector< std::filesystem::path > &sources, const std::filesystem::path &destination, bool overwrite=false) |
| | Move files with progress tracking.
|
| |
| static bool | CreateDirectoryRecursive (const std::filesystem::path &path) |
| | Create directory with intermediate directories.
|
| |
| static size_t | DeleteFiles (const std::vector< std::filesystem::path > &paths, bool moveToTrash=true) |
| | Delete files and directories safely.
|
| |
| static std::filesystem::path | GenerateUniqueFilename (const std::filesystem::path &basePath) |
| | Generate unique filename if file already exists.
|
| |
| static std::vector< std::filesystem::path > | FindFiles (const std::filesystem::path &directory, const std::string &pattern, bool recursive=false) |
| | Search for files matching pattern.
|
| |
| static std::string | FormatFileSize (std::uintmax_t sizeBytes) |
| | Get file size in human-readable format.
|
| |
| static std::string | FormatFileTime (const std::filesystem::file_time_type &fileTime) |
| | Get file modification time as string.
|
| |
| static bool | HasPermission (const std::filesystem::path &path, std::filesystem::perms permission) |
| | Check if file has specific permissions.
|
| |
| static bool | SetPermissions (const std::filesystem::path &path, std::filesystem::perms permissions) |
| | Set file permissions.
|
| |
| static bool | IsValidFilename (const std::string &filename) |
| | Validate filename for current OS.
|
| |
| static std::string | SanitizeFilename (const std::string &filename) |
| | Sanitize filename for current OS.
|
| |
| static std::string | GetMimeType (const std::string &extension) |
| | Get MIME type for file extension.
|
| |
| static std::string | GetFileCategory (const std::string &extension) |
| | Get file category for extension.
|
| |
| static std::uintmax_t | GetDirectorySize (const std::filesystem::path &directory) |
| | Calculate directory size recursively.
|
| |
| static bool | OpenWithDefaultApplication (const std::filesystem::path &path) |
| | Open file with system default application.
|
| |
| static bool | ShowInFileExplorer (const std::filesystem::path &path) |
| | Show file in system file explorer.
|
| |
| static std::uintmax_t | GetAvailableSpace (const std::filesystem::path &path) |
| | Get available disk space for path.
|
| |
| static bool | IsNetworkPath (const std::filesystem::path &path) |
| | Check if path is on a network drive.
|
| |
| static std::filesystem::path | CreateBackup (const std::filesystem::path &filePath) |
| | Backup file with timestamp.
|
| |
| static bool | CompareFiles (const std::filesystem::path &file1, const std::filesystem::path &file2) |
| | Compare two files for equality.
|
| |
Advanced file operations for asset management.