What is the problem you are having with rclone?
If the source has a file that ends with a unicode whitespace character (eg: u'\u2028'), rclone would skip that file when using --files-from
What is your rclone version (output from rclone version
)
v1.50.2
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 18.04 (though OS is irrelevant)
Which cloud storage system are you using? (eg Google Drive)
Issue can be replicated irrespective of OS as this is an issue in the filtering
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
Perform following commands:
rclone lsf <source_path> > include-file.txt
rclone copy <source_path> <remote_name>:<remote_path> --files-from include-file.txt -vv
The issue is because while adding files to the FilesFrom map during filters creation, we use strings.TrimSpace
, which also trims the unicode whitespace characters. So the FilesFrom
map now contains incorrect file names, and later when walking, we try to find the correct file name (with the unicode whitespace) in the FilesFrom
map, and when we do not find it, the file is excluded.