|
Maps SDK for C++ 1.0.0
|
File system object. More...


Public Member Functions | |
| FileSystem (const FileSystem &)=delete | |
| FileSystem (FileSystem &&filesystem)=default | |
| Default move constructor noexcept is deduced. | |
| FileSystem & | operator= (const FileSystem &)=delete |
| FileSystem & | operator= (FileSystem &&filesystem)=default |
| Default move assignment noexcept is deduced. | |
| FileSystemFolder | scan (const String &path, const String &fileTemplate, const String &folderTemplate, bool recursive=false) const noexcept |
| Scan folder for all file system items. | |
| FileSystemFolder | scan (const String &path, const String &fileTemplate) const noexcept |
| Scan folder for all files. | |
| const FileSystemFolder & | scanMore (const String &path, const String &fileTemplate, const String &folderTemplate, FileSystemFolder &folder, bool recursive=false) const noexcept |
| Scan folder for all file system items and append to existing result. | |
| const FileSystemFolder & | scanMore (const String &path, const String &fileTemplate, FileSystemFolder &folder) const noexcept |
| Scan folder for all files and append to existing result. | |
| String | getLastComponent (const String &path) const noexcept |
| extract last path component ( file or folder ) | |
| String | getFileName (const String &path) const noexcept |
| extract last path component file name | |
| String | getFileExt (const String &path) const noexcept |
| extract last path component file extension | |
| String | removeLastComponent (const String &path) const noexcept |
| remove last path component ( file or folder ) | |
| template<typename ... Components> | |
| String | makePath (Components &&... components) |
| make path from components | |
| int | createFolder (const String &path, bool createAllComponents) const noexcept |
| Create a folder identified by path. | |
| int | deleteFile (const String &path) const noexcept |
| Delete the file specified by path. | |
| int | copyFile (const String &source, const String &destination, bool overwrite=false) const noexcept |
| Copy the source file to destination location. | |
| int | moveFile (const String &source, const String &destination, bool overwrite=false) const noexcept |
| Move the source file to destination location. | |
| int | deleteAllFiles (const String &folder, const String &filesTemplate) const noexcept |
| Delete all files in the given folder. | |
| int | uncompress (const String &archivePath, const String &folder) const noexcept |
| Uncompress the given archive to the given folder. | |
File system object.
Implements share-read / write Api object over IFileSystem.
This behaves like a singleton, i.e. all instances are sharing behind the same API interface
|
default |
Default move constructor noexcept is deduced.
| filesystem | The source object |
|
inlinenoexcept |
Copy the source file to destination location.
| [in] | source | Source file path |
| [in] | destination | Destination location. If last char in the destination path is a path separator, the file name is from source is appended |
| [in] | overwrite | Overwrite destination file if exists |
|
inlinenoexcept |
Create a folder identified by path.
| [in] | path | Folder path including folder name |
| [in] | createAllComponents | Create all path components ( if doesn't exist ) |
|
inlinenoexcept |
Delete all files in the given folder.
| [in] | folder | The target folder path |
| [in] | filesTemplate | The template of the files to be deleted. *, ? and [] wildcards are supported |
|
inlinenoexcept |
Delete the file specified by path.
| [in] | path | File path |
extract last path component file extension
| [in] | path | File path |
extract last path component file name
| [in] | path | File path |
extract last path component ( file or folder )
| [in] | path | File or folder path |
|
inline |
make path from components
| [in] | components | The components of the path. |
|
inlinenoexcept |
Move the source file to destination location.
| [in] | source | Source file path |
| [in] | destination | Destination location. If last char in the destination path is a path separator, the file name is from source is appended |
| [in] | overwrite | Overwrite destination file if exists |
|
default |
Default move assignment noexcept is deduced.
| filesystem | The source object |
remove last path component ( file or folder )
| [in] | path | File or folder path |
|
inlinenoexcept |
Scan folder for all files.
| [in] | path | Path to target folder |
| [in] | fileTemplate | File name template to match |
Use "*" for any file, use empty string to not scan for files
|
inlinenoexcept |
Scan folder for all file system items.
| [in] | path | Path to target folder |
| [in] | fileTemplate | File name template to match |
Use "*" for any file, use empty string to not scan for files
| [in] | folderTemplate | Sub-folders name template to match |
Use "*" for any folder, use empty string to not scan for folders
| [in] | recursive | Scan recursively on sub-folders flag |
|
inlinenoexcept |
Scan folder for all file system items and append to existing result.
| [in] | path | Path to target folder |
| [in] | fileTemplate | File name template to match |
Use "*" for any file, use empty string to not scan for files
| [in] | folderTemplate | Sub-folders name template to match |
Use "*" for any folder, use empty string to not scan for folders
| [in] | folder | The existing folder result |
| [in] | recursive | Scan recursively on sub-folders flag |
|
inlinenoexcept |
Scan folder for all files and append to existing result.
| [in] | path | Path to target folder |
| [in] | fileTemplate | File name template to match |
Use "*" for any file, use empty string to not scan for files
| [in] | folder | The existing folder result |