FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Windows.Services.Shell.WindowsBinInteraction Class Reference

Interacts with the Windows Shell and System.Runtime.InteropServices in order to restore files and directories from the system trash. More...

Inheritance diagram for FileSurfer.Windows.Services.Shell.WindowsBinInteraction:
Collaboration diagram for FileSurfer.Windows.Services.Shell.WindowsBinInteraction:

Public Member Functions

IResult RestoreFile (string originalFilePath)
 Restores a file based on originalFilePath .
IResult RestoreDir (string originalDirPath)
 Restores a directory based on originalDirPath .
IResult MoveFileToTrash (string filePath)
 Moves a file to the trash.
IResult MoveDirToTrash (string dirPath)
 Moves a directory to the trash.
void Dispose ()

Detailed Description

Interacts with the Windows Shell and System.Runtime.InteropServices in order to restore files and directories from the system trash.

Member Function Documentation

◆ Dispose()

void FileSurfer.Windows.Services.Shell.WindowsBinInteraction.Dispose ( )
inline

◆ MoveDirToTrash()

IResult FileSurfer.Windows.Services.Shell.WindowsBinInteraction.MoveDirToTrash ( string dirPath)
inline

Moves a directory to the trash.

Parameters
dirPathThe full path of the directory to move to trash.
Returns
The operation result, including any error details if moving the directory fails.

Implements FileSurfer.Core.Services.Shell.IBinInteraction.

Here is the call graph for this function:

◆ MoveFileToTrash()

IResult FileSurfer.Windows.Services.Shell.WindowsBinInteraction.MoveFileToTrash ( string filePath)
inline

Moves a file to the trash.

Parameters
filePathThe full path of the file to move to trash.
Returns
The operation result, including any error details if moving the file fails.

Implements FileSurfer.Core.Services.Shell.IBinInteraction.

Here is the call graph for this function:

◆ RestoreDir()

IResult FileSurfer.Windows.Services.Shell.WindowsBinInteraction.RestoreDir ( string originalDirPath)
inline

Restores a directory based on originalDirPath .

Parameters
originalDirPathThe original full path of the directory before it was moved to trash.
Returns
The operation result, including any error details if directory restoration fails.

Implements FileSurfer.Core.Services.Shell.IBinInteraction.

Here is the call graph for this function:

◆ RestoreFile()

IResult FileSurfer.Windows.Services.Shell.WindowsBinInteraction.RestoreFile ( string originalFilePath)
inline

Restores a file based on originalFilePath .

Parameters
originalFilePathThe original full path of the file before it was moved to trash.
Returns
The operation result, including any error details if file restoration fails.

Implements FileSurfer.Core.Services.Shell.IBinInteraction.


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