mirror of
https://github.com/rclone/rclone.git
synced 2026-06-01 21:04:54 -04:00
When `operations/stat` / StatJSON is called on a directory path it lists the parent directory to find the target entry. If the parent has millions of entries this is very expensive. This fixes the problem for bucket-based backends with ListP by listing the target directory itself first. It will stop the listing immediately if any files are found meaning it is safe to run on directories with millions of files.