C# Class Business.FileOperationAPIWrapper

Show file Open project: mysteryx93/NaturalGroundingPlayer

Public Methods

Method Description
DeleteCompletelySilent ( string path ) : bool
MoveToRecycleBin ( string path ) : void

Send file silently to recycle bin. Surpress dialog, surpress errors, delete if too large.

Send ( string path ) : bool

Send file to recycle bin. Display dialog, display warning if files are too big to fit (FOF_WANTNUKEWARNING)

Send ( string path, FileOperationFlags flags ) : bool

Send file to recycle bin

Private Methods

Method Description
SHFileOperation ( SHFILEOPSTRUCT &FileOp ) : int
deleteFile ( string path, FileOperationFlags flags ) : bool

Method Details

DeleteCompletelySilent() public static method

public static DeleteCompletelySilent ( string path ) : bool
path string
return bool

MoveToRecycleBin() public static method

Send file silently to recycle bin. Surpress dialog, surpress errors, delete if too large.
public static MoveToRecycleBin ( string path ) : void
path string Location of directory or file to recycle
return void

Send() public static method

Send file to recycle bin. Display dialog, display warning if files are too big to fit (FOF_WANTNUKEWARNING)
public static Send ( string path ) : bool
path string Location of directory or file to recycle
return bool

Send() public static method

Send file to recycle bin
public static Send ( string path, FileOperationFlags flags ) : bool
path string Location of directory or file to recycle
flags FileOperationFlags FileOperationFlags to add in addition to FOF_ALLOWUNDO
return bool