Use a Tab delimited file to upload files to remote

#1

Hi,

I have a TSV file getting generated from another service which has a format like
Path\tName\tSize\... etc.
Currently Rclone takes the source directory and does its own scan (os walk). I want to use this report instead of scan and upload all the files/folders listed in the file to the remote.

How can I do that? I am open to make some changes in rclone code to do this. Any guidance would be appreciated.

Thanks

#2

You can use an include and have to setup it up a bit differently:

https://rclone.org/filtering/#include-from-read-include-patterns-from-file

#3

The copy command still takes the source path. So when I use --include-from flag, it will still scan the source path (walk the source path) to match the patterns.

What I want to do is to provide the absolute path of files and folders through a Flat file instead of providing patterns. The goal is to eliminate the folder walk happening in rclone at the time of copy/move.

#4

That’s in the next section:

https://rclone.org/filtering/#files-from-read-list-of-source-file-names