LocalFileTransfers class

Namespace Runic.Platform.Runtime in Runic.Platform.Runtime 0.23.0

public static class LocalFileTransfers

Creates the managed file transfer engine that every platform shares.

Methods

Create

public static IDesktopFileTransfers Create()

Creates file transfers for local file systems.

Remarks

The engine copies file content in 1 MiB blocks, so it reports progress and stops at cancellation within a block. A move renames each source when it stays on its file system. The only native calls are an exclusive rename (renameat2(RENAME_NOREPLACE) on Linux, renamex_np(RENAME_EXCL) on macOS, MoveFileExW on Windows) and, on Linux and macOS, reading an entry's type.