libfilezilla
Public Member Functions | Protected Member Functions | List of all members
recursive_remove Class Reference

Recursively deletes directories. More...

#include <recursive_remove.hpp>

Public Member Functions

 recursive_remove (recursive_remove const &)=delete
 
recursive_removeoperator= (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...
 

Detailed Description

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.

Member Function Documentation

◆ adjust_shfileop()

virtual void adjust_shfileop ( SHFILEOPSTRUCT &  op)
protectedvirtual

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

The default implementation allows undo and suppresses any GUI output.

◆ confirm()

virtual bool confirm ( ) const
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


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