|
FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
|
Handles file IO operations in the Windows environment within the context of the FileSurfer app. More...


Public Member Functions | |
| WindowsFileIoHandler (IFileInfoProvider fileInfoProvider) | |
| Initializes a new instance of the WindowsFileIoHandler class. | |
| 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. | |
Handles file IO operations in the Windows environment within the context of the FileSurfer app.
|
inline |
Initializes a new instance of the WindowsFileIoHandler class.
| fileInfoProvider | The file info provider used for name collision checks. |
|
inline |
Copies a directory to a specified destination directory.
| dirPath | The full path of the directory to copy. |
| destinationDir | The destination directory path. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Copies a file to a specified destination directory.
| filePath | The full path of the file to copy. |
| destinationDir | The destination directory path. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Deletes a directory permanently.
| dirPath | The full path of the directory to delete. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Deletes a file permanently.
| filePath | The full path of the file to delete. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.


|
inline |
Creates a duplicate of a directory with a new name.
| dirPath | The full path of the directory to duplicate. |
| copyName | The name for the duplicated directory. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Creates a duplicate of a file with a new name.
| filePath | The full path of the file to duplicate. |
| copyName | The name for the duplicated file. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Moves a directory to a specified destination directory.
| dirPath | The full path of the directory to move. |
| destinationDir | The destination directory path. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Moves a file to a specified destination directory.
| filePath | The full path of the file to move. |
| destinationDir | The destination directory path. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Creates a new directory at the specified path.
| dirPath | The parent directory where the new directory should be created. |
| dirName | The name of the directory to create. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Creates a new file at the specified directory path.
| dirPath | The target directory where the file should be created. |
| fileName | The name of the file to create. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Renames a directory at the specified path.
| dirPath | The full path of the directory to rename. |
| newName | The new directory name. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Renames a file at the specified path.
| filePath | The full path of the file to rename. |
| newName | The new file name. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.

|
inline |
Writes the all containing file streams and directories into a file with names specified in FileTransferStream.Name and DirTransferStream.Name.
| dirStream | The directory transfer stream containing nested files and directories to write. |
| dirPath | Destination root directory where the streamed directory structure should be created. |
| reporter | Progress reporter used to emit transfer progress. |
| ct | Cancellation token used to stop the write operation. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.
|
inline |
Writes the filestream into a file with name specified in FileTransferStream.Name.
| fileStream | The file transfer stream containing content and metadata for the file to write. |
| dirPath | Destination directory where the file should be written. |
| reporter | Progress reporter used to emit transfer progress. |
| ct | Cancellation token used to stop the write operation. |
Implements FileSurfer.Core.Services.FileOperations.IFileIoHandler.
