Documentation
¶
Index ¶
- func CopyFile(src backend.Backend, srcPath string, dst backend.Backend, dstPath string, ...) error
- func FormatProgress(p ProgressMsg) string
- func ListRecursive(b backend.Backend, path string) ([]backend.FileEntry, error)
- func MoveFile(b backend.Backend, src, dst string, send func(tea.Msg)) error
- func RunPool(ctx context.Context, src, dst backend.Backend, jobs []CopyJob, concurrency int, ...) error
- type CopyJob
- type DoneMsg
- type ProgressMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶
func CopyFile(src backend.Backend, srcPath string, dst backend.Backend, dstPath string, send func(tea.Msg)) error
CopyFile copies a single file from src backend to dst backend with progress reporting.
func FormatProgress ¶
func FormatProgress(p ProgressMsg) string
FormatProgress returns a human-readable progress string.
func ListRecursive ¶
ListRecursive lists all files (non-directory entries) under path recursively.
Types ¶
Click to show internal directories.
Click to hide internal directories.