Repository navigation
Open
Milestone
Description
Hello and Thanks,
What is your current rclone version (output from rclone version)?
rclone v1.54.0 - os/arch: windows/amd64 - go version: go1.15.7
What problem are you are trying to solve?
when rclone is asked to check a single file, to check a single file, same as rclone copy
https://forum.rclone.org/t/rclone-check-with-filename-should-not-scan-the-folder-not-apply-default-exclude-filter/22542
here is an example of such a command and the debug log.
notice that rclone copy copies a single file, no scanning the folder, no default exclude rule.
DEBUG : rclone: Version "v1.54.0" starting with parameters ["C:\\data\\rclone\\scripts\\rclone.exe" "copy" "C:\\Users\\user01\\AppData\\Local\\Temp\\x\\zip\\x.20210227.155210.7z" "wasabi01:en07dataxhome/x/zip/backup" "--stats=0" "--fast-list" "--log-level=DEBUG" "--log-file=C:\\data\\rclone\\logs\\x_wasabi\\20210227.155210\\rclone.log"]
DEBUG : Creating backend with remote "C:\\Users\\user01\\AppData\\Local\\Temp\\x\\zip\\x.20210227.155210.7z"
DEBUG : Using config file from "C:\\data\\rclone\\scripts\\rclone.conf"
DEBUG : fs cache: adding new entry for parent of "C:\\Users\\user01\\AppData\\Local\\Temp\\x\\zip\\x.20210227.155210.7z", "//?/C:/Users/user01/AppData/Local/Temp/x/zip"
DEBUG : Creating backend with remote "wasabi01:en07dataxhome/x/zip/backup"
DEBUG : x.20210227.155210.7z: Need to transfer - File not found at Destination
INFO : S3 bucket en07dataxhome path x/zip/backup: Bucket "en07dataxhome" created with ACL "private"
DEBUG : x.20210227.155210.7z: MD5 = b355c69250722ad26ec9e5b44da97f3e OK
INFO : x.20210227.155210.7z: Copied (new)
DEBUG : 7 go routines active
DEBUG : rclone: Version "v1.54.0" starting with parameters ["C:\\data\\rclone\\scripts\\rclone.exe" "check" "C:\\Users\\user01\\AppData\\Local\\Temp\\x\\zip\\x.20210227.155210.7z" "wasabi01:en07dataxhome/x/zip/backup" "--stats=0" "--fast-list" "--log-level=DEBUG" "--log-file=C:\\data\\rclone\\logs\\x_wasabi\\20210227.155210\\rclone.log"]
DEBUG : Creating backend with remote "C:\\Users\\user01\\AppData\\Local\\Temp\\x\\zip\\x.20210227.155210.7z"
DEBUG : Using config file from "C:\\data\\rclone\\scripts\\rclone.conf"
DEBUG : fs cache: adding new entry for parent of "C:\\Users\\user01\\AppData\\Local\\Temp\\x\\zip\\x.20210227.155210.7z", "//?/C:/Users/user01/AppData/Local/Temp/x/zip"
DEBUG : Creating backend with remote "wasabi01:en07dataxhome/x/zip/backup"
DEBUG : S3 bucket en07dataxhome path x/zip/backup: Waiting for checks to finish
DEBUG : x.20210227.151957.7z: Excluded
DEBUG : x.20210227.154101.7z: Excluded
DEBUG : x.20210227.154949.7z: Excluded
DEBUG : x.20210227.155210.7z: MD5 = b355c69250722ad26ec9e5b44da97f3e OK
DEBUG : x.20210227.155210.7z: OK
NOTICE: S3 bucket en07dataxhome path x/zip/backup: 0 differences found
NOTICE: S3 bucket en07dataxhome path x/zip/backup: 1 matching files
DEBUG : 5 go routines active
How do you think rclone should be changed to solve that?
that rclone checks that single file only.
that rclone does not scan the folder.
that rclone does not apply a default exclude filter.
thanks,
Reacted by Kelly McMurtrey
Activity
ncw commentedon Feb 28, 2021
This is a problem with rclone's handling of files in general on the command line.
rclone lswill have the same problem.The proper fix would be to change the
NewFsinterface.This is currently
This returns a special error to indicate that the path actually pointed to a file and the
Fsnow points to the directory the file is in.If this was changed to
Then this would return Object and Fs pointing to the directory above if
pathpointed to a file.This would then enable use of the actual object, rather than having to call NewObject later to find it again which is rather inefficient.
Once we have the Object in question, in order to stop the listing of all the files, maybe we should go back to the previous system of wrapping the (Fs, Object) in a specialized backend which doesn't list anything but only returns the single object.
It occurs to me that if we set
--no-traversewhen we build the exclude filter that this would fix the problem mostly.