libfilezilla
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
recursive_remove Class Reference

Recursively deletes directories. More...

#include <recursive_remove.hpp>

List of all members.

Public Member Functions

 recursive_remove (recursive_remove const &)
recursive_removeoperator= (recursive_remove const &)
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 overriden to ask the user for a confirmation.
virtual void adjust_shfileop (SHFILEOPSTRUCT &op)
 Windows only: Allows customization of the SHFILEOPSTRUCT passed to SHFileOperation.

Detailed Description

Recursively deletes directories.

Behavior varies by platform. On Windows, SHFileOperation is used, whereas we manually traverse the directory tree on other platforms.


Member Function Documentation

virtual void adjust_shfileop ( SHFILEOPSTRUCT &  op) [protected, virtual]

Windows only: Allows customization of the SHFILEOPSTRUCT passed to SHFileOperation.

The default implementation allows undo and supresses any GUI output.

virtual bool confirm ( ) const [inline, protected, virtual]

Can be overriden to ask the user for a confirmation.

On Windows this isn't called, there SHFileOperation itself can ask for confirmation. See adjust_shfileop


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines