softwarecontainer
0.18.0-739e8d7 2017-05-04
|
The RecursiveCopy class is a singleton class used to copy files recursively from a source to a destination. More...
#include <recursivecopy.h>
Public Member Functions | |
RecursiveCopy (RecursiveCopy &s)=delete | |
Disallow copy and operator constructors. More... | |
void | operator= (RecursiveCopy const &s)=delete |
bool | copy (std::string src, std::string dst) |
copy Copy files from src to dst More... | |
Static Public Member Functions | |
static RecursiveCopy & | getInstance () |
getInstance Gets the RecursiveCopy instance. More... | |
The RecursiveCopy class is a singleton class used to copy files recursively from a source to a destination.
Definition at line 29 of file recursivecopy.h.
|
delete |
Disallow copy and operator constructors.
|
static |
getInstance Gets the RecursiveCopy instance.
Definition at line 72 of file recursivecopy.cpp.
Referenced by softwarecontainer::OverlaySyncCleanupHandler::clean(), and softwarecontainer::FileToolkitWithUndo::syncOverlayMount().
bool softwarecontainer::RecursiveCopy::copy | ( | std::string | src, |
std::string | dst | ||
) |
copy Copy files from src to dst
The function is protected by a mutex because it uses some non thread-safe C functions.
src | The source path to copy from |
dst | The destination path to copy to |
Definition at line 78 of file recursivecopy.cpp.
Referenced by softwarecontainer::OverlaySyncCleanupHandler::clean(), and softwarecontainer::FileToolkitWithUndo::syncOverlayMount().