libfilezilla
|
Recursively deletes directories. More...
#include <recursive_remove.hpp>
Public Member Functions | |
recursive_remove (recursive_remove const &)=delete | |
recursive_remove & | operator= (recursive_remove const &)=delete |
bool | remove (native_string const &path) |
Removes given directory. | |
bool | remove (std::list< native_string > dirsToVisit) |
Removes given directories. | |
Protected Member Functions | |
virtual bool | confirm () const |
Can be overridden to ask the user for a confirmation. More... | |
virtual void | adjust_shfileop (SHFILEOPSTRUCT &op) |
Windows only: Allows customization of the SHFILEOPSTRUCT passed to SHFileOperation. More... | |
Recursively deletes directories.
Behavior varies by platform. On Windows, SHFileOperation is used if shell32.dll is loadable.
The generic implementation manually traverse the directory tree on other platforms.
|
protectedvirtual |
Windows only: Allows customization of the SHFILEOPSTRUCT passed to SHFileOperation.
The default implementation allows undo and suppresses any GUI output.
|
inlineprotectedvirtual |
Can be overridden to ask the user for a confirmation.
On Windows this isn't called, there SHFileOperation itself can ask for confirmation. See adjust_shfileop