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

Return true to ignore error and continue copying, false to stop.

Member Enumeration Documentation

◆ Operation

Enumerator
XX 

Constructor & Destructor Documentation

◆ FileCopier()

IFS::FileCopier::FileCopier ( FileSystem srcfs,
FileSystem dstfs 
)

Member Function Documentation

◆ copyAttributes()

bool IFS::FileCopier::copyAttributes ( const String srcPath,
const String dstPath 
)

◆ copyDir()

bool IFS::FileCopier::copyDir ( const String srcPath,
const String dstPath 
)

◆ copyFile()

bool IFS::FileCopier::copyFile ( const String srcFileName,
const String dstFileName 
)

◆ onError()

void IFS::FileCopier::onError ( ErrorHandler  callback)
inline

The documentation for this class was generated from the following file: