IFS::FileCopier Class Reference
Class to manage copying of files and directories including attributes. More...
#include <FileCopier.h>
Classes | |
struct | ErrorInfo |
Error information passed to callback. More... | |
Public Types | |
enum | Operation { Operation::XX } |
using | ErrorHandler = Delegate< bool(const ErrorInfo &info)> |
Return true to ignore error and continue copying, false to stop. More... | |
Public Member Functions | |
FileCopier (FileSystem &srcfs, FileSystem &dstfs) | |
bool | copyFile (const String &srcFileName, const String &dstFileName) |
bool | copyDir (const String &srcPath, const String &dstPath) |
bool | copyAttributes (const String &srcPath, const String &dstPath) |
void | onError (ErrorHandler callback) |
Detailed Description
Class to manage copying of files and directories including attributes.
Member Typedef Documentation
◆ ErrorHandler
using IFS::FileCopier::ErrorHandler = Delegate<bool(const ErrorInfo& info)> |
Return true to ignore error and continue copying, false to stop.
Member Enumeration Documentation
◆ Operation
|
strong |
Constructor & Destructor Documentation
◆ FileCopier()
IFS::FileCopier::FileCopier | ( | FileSystem & | srcfs, |
FileSystem & | dstfs | ||
) |
Member Function Documentation
◆ copyAttributes()
◆ copyDir()
◆ copyFile()
◆ onError()
|
inline |
The documentation for this class was generated from the following file: