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

Handles file IO operations in the Linux environment. More...

Inheritance diagram for FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler:
Collaboration diagram for FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler:

Public Member Functions

IResult DeleteFile (string filePath)
 Deletes a file permanently.
IResult DeleteDir (string dirPath)
 Deletes a directory permanently.
async Task< IResult > WriteFileStreamAsync (FileTransferStream fileStream, string dirPath, ProgressReporter reporter, CancellationToken ct)
 Writes the filestream into a file with name specified in FileTransferStream.Name.
Task< IResult > WriteDirStreamAsync (DirTransferStream dirStream, string dirPath, ProgressReporter reporter, CancellationToken ct)
 Writes the all containing file streams and directories into a file with names specified in FileTransferStream.Name and DirTransferStream.Name.
IResult NewFileAt (string dirPath, string fileName)
 Creates a new file at the specified directory path.
IResult NewDirAt (string dirPath, string dirName)
 Creates a new directory at the specified path.
IResult RenameFileAt (string filePath, string newName)
 Renames a file at the specified path.
IResult RenameDirAt (string dirPath, string newName)
 Renames a directory at the specified path.
IResult MoveFileTo (string filePath, string destinationDir)
 Moves a file to a specified destination directory.
IResult MoveDirTo (string dirPath, string destinationDir)
 Moves a directory to a specified destination directory.
IResult CopyFileTo (string filePath, string destinationDir)
 Copies a file to a specified destination directory.
IResult CopyDirTo (string dirPath, string destinationDir)
 Copies a directory to a specified destination directory.
IResult DuplicateFile (string filePath, string copyName)
 Creates a duplicate of a file with a new name.
IResult DuplicateDir (string dirPath, string copyName)
 Creates a duplicate of a directory with a new name.

Detailed Description

Handles file IO operations in the Linux environment.

Member Function Documentation

◆ CopyDirTo()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.CopyDirTo ( string dirPath,
string destinationDir )
inline

Copies a directory to a specified destination directory.

Parameters
dirPathThe full path of the directory to copy.
destinationDirThe destination directory path.
Returns
The operation result, including any error details if copy fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ CopyFileTo()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.CopyFileTo ( string filePath,
string destinationDir )
inline

Copies a file to a specified destination directory.

Parameters
filePathThe full path of the file to copy.
destinationDirThe destination directory path.
Returns
The operation result, including any error details if copy fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ DeleteDir()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.DeleteDir ( string dirPath)
inline

Deletes a directory permanently.

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

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ DeleteFile()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.DeleteFile ( string filePath)
inline

Deletes a file permanently.

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

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DuplicateDir()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.DuplicateDir ( string dirPath,
string copyName )
inline

Creates a duplicate of a directory with a new name.

Parameters
dirPathThe full path of the directory to duplicate.
copyNameThe name for the duplicated directory.
Returns
The operation result, including any error details if duplication fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ DuplicateFile()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.DuplicateFile ( string filePath,
string copyName )
inline

Creates a duplicate of a file with a new name.

Parameters
filePathThe full path of the file to duplicate.
copyNameThe name for the duplicated file.
Returns
The operation result, including any error details if duplication fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ MoveDirTo()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.MoveDirTo ( string dirPath,
string destinationDir )
inline

Moves a directory to a specified destination directory.

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

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ MoveFileTo()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.MoveFileTo ( string filePath,
string destinationDir )
inline

Moves a file to a specified destination directory.

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

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ NewDirAt()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.NewDirAt ( string dirPath,
string dirName )
inline

Creates a new directory at the specified path.

Parameters
dirPathThe parent directory where the new directory should be created.
dirNameThe name of the directory to create.
Returns
The operation result, including any error details if directory creation fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ NewFileAt()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.NewFileAt ( string dirPath,
string fileName )
inline

Creates a new file at the specified directory path.

Parameters
dirPathThe target directory where the file should be created.
fileNameThe name of the file to create.
Returns
The operation result, including any error details if file creation fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ RenameDirAt()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.RenameDirAt ( string dirPath,
string newName )
inline

Renames a directory at the specified path.

Parameters
dirPathThe full path of the directory to rename.
newNameThe new directory name.
Returns
The operation result, including any error details if rename fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ RenameFileAt()

IResult FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.RenameFileAt ( string filePath,
string newName )
inline

Renames a file at the specified path.

Parameters
filePathThe full path of the file to rename.
newNameThe new file name.
Returns
The operation result, including any error details if rename fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

◆ WriteDirStreamAsync()

Task< IResult > FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.WriteDirStreamAsync ( DirTransferStream dirStream,
string dirPath,
ProgressReporter reporter,
CancellationToken ct )
inline

Writes the all containing file streams and directories into a file with names specified in FileTransferStream.Name and DirTransferStream.Name.

Parameters
dirStreamThe directory transfer stream containing nested files and directories to write.
dirPathDestination root directory where the streamed directory structure should be created.
reporterProgress reporter used to emit transfer progress.
ctCancellation token used to stop the write operation.
Returns
A task that returns the operation result, including any error details if writing fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

◆ WriteFileStreamAsync()

async Task< IResult > FileSurfer.Linux.Services.FileOperations.LinuxFileIoHandler.WriteFileStreamAsync ( FileTransferStream fileStream,
string dirPath,
ProgressReporter reporter,
CancellationToken ct )
inline

Writes the filestream into a file with name specified in FileTransferStream.Name.

Parameters
fileStreamThe file transfer stream containing content and metadata for the file to write.
dirPathDestination directory where the file should be written.
reporterProgress reporter used to emit transfer progress.
ctCancellation token used to stop the write operation.
Returns
A task that returns the operation result, including any error details if writing fails.

Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • /home/janecea/Documents/CODE/PROJECTS/FileSurfer/src/FileSurfer.Linux/Services/FileOperations/LinuxFileIOHandler.cs