FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Core.Extensions.TransferStreamExtensions Class Reference

Provides extension methods for transferring directory and file streams. More...

Static Public Member Functions

static async Task< IResult > WriteToStreamAsync (this FileTransferStream fileStream, Stream writeStream, ProgressReporter reporter, CancellationToken ct)
 Writes a file transfer stream to the target stream.
static async Task< IResult > WriteWithIoHandlerAsync (this DirTransferStream dirStream, IFileIoHandler ioHandler, IPathTools pathTools, string dirPath, ProgressReporter reporter, CancellationToken ct)
 Writes a directory transfer stream using file I/O operations.

Detailed Description

Provides extension methods for transferring directory and file streams.

Member Function Documentation

◆ WriteToStreamAsync()

async Task< IResult > FileSurfer.Core.Extensions.TransferStreamExtensions.WriteToStreamAsync ( this FileTransferStream fileStream,
Stream writeStream,
ProgressReporter reporter,
CancellationToken ct )
inlinestatic

Writes a file transfer stream to the target stream.

Parameters
fileStreamThe source file stream wrapper.
writeStreamThe destination stream.
reporterThe progress reporter used for transfer updates.
ctThe cancellation token.
Returns
The write result.
Here is the call graph for this function:

◆ WriteWithIoHandlerAsync()

async Task< IResult > FileSurfer.Core.Extensions.TransferStreamExtensions.WriteWithIoHandlerAsync ( this DirTransferStream dirStream,
IFileIoHandler ioHandler,
IPathTools pathTools,
string dirPath,
ProgressReporter reporter,
CancellationToken ct )
inlinestatic

Writes a directory transfer stream using file I/O operations.

Parameters
dirStreamThe source directory transfer stream.
ioHandlerThe file I/O handler used for writes.
pathToolsThe path tools used to combine target paths.
dirPathThe destination parent directory path.
reporterThe progress reporter used for transfer updates.
ctThe cancellation token.
Returns
The write result.
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.Core/Extensions/ModelExtensions.cs