Having trouble with copying files and folders from list file

What is the problem you are having with rclone?

I created a file with list of names of files and folders. (say list.txt)
Both --files-from and --include-from cannot be used, however.

For --files-from, it ignores names of folders.
For --include-from, it's unusable because it interprets some characters as regex metacharacters while I want those names to be interpreted as-is.

What I am trying to achieve is:

For file names, files with those names should be copied/moved.
For folder names (names without trailing slash or asterisks), folders with those names should be copied/moved recursively.
All names are literal, no regex at all

What should I do for this kind of work?

What is your rclone version (output from rclone version)

rclone v1.52.3
- os/arch: windows/amd64
- go version: go1.14.7

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10 2004, 64bit

Which cloud storage system are you using? (eg Google Drive)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Paste command here

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

hello,

can you post all the requested info and post the list.txt?

you should update rclone.

--files-from only takes a list of files, not directories.

You can quote the metacharacters like this: instead of * write [*] - same for the other metacharacters. You can escape [ with [\x5b] and ] with [\x5d].

I thought quoting names is a last resort, and it really is...
Anyway, thanks.

would this help?
https://rclone.org/filtering/#files-from-raw-read-list-of-source-file-names-without-any-processing

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.