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

Interacts with the gio trash cli utility in order to move/restore files and directories to/from the system trash. More...

Inheritance diagram for FileSurfer.Linux.Services.Shell.LinuxBinInteraction:
Collaboration diagram for FileSurfer.Linux.Services.Shell.LinuxBinInteraction:

Public Member Functions

 LinuxBinInteraction (IShellCommandHandler shellHandler)
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 gio trash cli utility in order to move/restore files and directories to/from the system trash.

Constructor & Destructor Documentation

◆ LinuxBinInteraction()

FileSurfer.Linux.Services.Shell.LinuxBinInteraction.LinuxBinInteraction ( IShellCommandHandler shellHandler)
inline

Member Function Documentation

◆ Dispose()

void FileSurfer.Linux.Services.Shell.LinuxBinInteraction.Dispose ( )
inline

◆ MoveDirToTrash()

IResult FileSurfer.Linux.Services.Shell.LinuxBinInteraction.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.

◆ MoveFileToTrash()

IResult FileSurfer.Linux.Services.Shell.LinuxBinInteraction.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.

◆ RestoreDir()

IResult FileSurfer.Linux.Services.Shell.LinuxBinInteraction.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.

◆ RestoreFile()

IResult FileSurfer.Linux.Services.Shell.LinuxBinInteraction.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: