fs: define ListP interface for paged listing #4788

This commit is contained in:
Nick Craig-Wood
2024-11-22 17:55:15 +00:00
parent bff229713a
commit 2a90de9502
2 changed files with 40 additions and 0 deletions

View File

@@ -311,6 +311,7 @@ func DirectoryOptionalInterfaces(d Directory) (supported, unsupported []string)
type ListRCallback func(entries DirEntries) error
// ListRFn is defines the call used to recursively list a directory
// with ListR or page through a directory with ListP
type ListRFn func(ctx context.Context, dir string, callback ListRCallback) error
// Flagger describes the interface rclone config types flags must satisfy