Skip to main content

Module sftp

Module sftp 

Source
Expand description

SFTP file manager operations.

Provides SftpManager — a persistent background task that owns an SSH+SFTP session and processes SftpCommand messages sent from the UI thread.

All operations are non-blocking from the UI perspective. Progress is reported via CoreEvent::FileTransferProgress.

Structs§

FileEntry
Metadata for a single file or directory in a file panel.
SftpManager
Manages a persistent SSH+SFTP background task.

Enums§

SftpCommand
Commands processed by the SftpManager background task.

Functions§

list_local_dir
Lists the entries of a local directory, sorted dirs-first then alphabetically.
preview_local_file
Reads up to 4 096 bytes from a local file and returns them as a UTF-8 string.