mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
The filer streams nothing for ListEntries on a directory that does not exist, or on a file, so OPENDIR succeeded and READDIR returned an empty listing. Clients could not tell a missing directory from an empty one: `rclone lsf remote:does-not-exist` exited 0, and rclone's FsListDirNotFound test got nil instead of "directory not found". When the first page comes back empty, look the path up and return os.ErrNotExist unless it is a directory, which the request server sends as SSH_FX_NO_SUCH_FILE. Non-empty listings pay no extra lookup. Co-authored-by: Denis Maier <denis@dAir.lab> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>