Interacts with the Windows Shell and System.Runtime.InteropServices in order to restore files and directories from the system trash.
More...
Interacts with the Windows Shell and System.Runtime.InteropServices in order to restore files and directories from the system trash.
◆ 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
-
| dirPath | The 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.
◆ MoveFileToTrash()
| IResult FileSurfer.Windows.Services.Shell.WindowsBinInteraction.MoveFileToTrash |
( |
string | filePath | ) |
|
|
inline |
Moves a file to the trash.
- Parameters
-
| filePath | The 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.
◆ RestoreDir()
| IResult FileSurfer.Windows.Services.Shell.WindowsBinInteraction.RestoreDir |
( |
string | originalDirPath | ) |
|
|
inline |
Restores a directory based on originalDirPath .
- Parameters
-
| originalDirPath | The 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.
◆ RestoreFile()
| IResult FileSurfer.Windows.Services.Shell.WindowsBinInteraction.RestoreFile |
( |
string | originalFilePath | ) |
|
|
inline |
Restores a file based on originalFilePath .
- Parameters
-
| originalFilePath | The 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: