Why does rclone return there are no files to transfer from a list?

#### What is the problem you are having with rclone?
When attempting to copy a list of files from a text file, it returns 2020/10/31 12:33:40 INFO : There was nothing to transfer

#### What is your rclone version (output from rclone version)
rclone v1.53.1

#### Which OS you are using and how many bits (eg Windows 7, 64 bit)
Microsoft Windows 10 Professional version 1909 Build 18636.1110

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

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

rclone.exe --transfers=2 --checkers=2 --stats 10s --progress --bwlimit 8M --checksum --log-file=rclone_list.txt --log-level DEBUG --files-from c:\temp\list.txt c:\temp\media OneDrive:/media

The files are stored in subdirectories in a common directory e.g. media. The file path to the file that is to be copied across would be for instance c:\temp\media\subdir1\filename.txt

The list in the file list.txt is subdir1\filename.txt.

The aim is to copy these files in the list and populate it in the same path in the remot4e e.g. OneDrive:/media/subdir1/filename.txt

What is missing from either the command or list?

can you post the debug log and the list.txt.

Debug log

2020/10/31 12:32:43 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone.exe" "--transfers=2" "--checkers=2" "--stats" "10s" "--progress" "--bwlimit" "8M" "--checksum" "--log-file=rclone_list.txt" "--log-level" "DEBUG" "--dry-run" "copy" "--files-from" "c:\\temp\\list.txt" "OneDrive:/media"]
2020/10/31 12:33:33 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone.exe" "--transfers=2" "--checkers=2" "--stats" "10s" "--progress" "--bwlimit" "8M" "--checksum" "--log-file=rclone_list.txt" "--log-level" "DEBUG" "copy" "--files-from" "c:\\temp\\list.txt" "c:\\temp\\media" "OneDrive:/media"]
2020/10/31 12:33:33 DEBUG : Creating backend with remote "c:\\temp\\media"
2020/10/31 12:33:39 DEBUG : Using config file from "C:\\Users\\ryanhallinger\\.config\\rclone\\rclone.conf"
2020/10/31 12:33:39 INFO  : Starting bandwidth limiter at 8MBytes/s
2020/10/31 12:33:39 DEBUG : fs cache: renaming cache item "c:\\temp\\media" to be canonical "//?/c:/temp/media"
2020/10/31 12:33:39 DEBUG : Creating backend with remote "OneDrive:/media"
2020/10/31 12:33:40 DEBUG : fs cache: renaming cache item "OneDrive:/media" to be canonical "OneDrive:media"
2020/10/31 12:33:40 DEBUG : subdir1: Excluded
2020/10/31 12:33:40 DEBUG : subdir2: Excluded
2020/10/31 12:33:40 DEBUG : One drive root 'media': Waiting for checks to finish
2020/10/31 12:33:40 DEBUG : One drive root 'media: Waiting for transfers to finish
2020/10/31 12:33:40 INFO  : There was nothing to transfer
2020/10/31 12:33:40 INFO  : 
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time:         7.5s
2020/10/31 12:33:40 DEBUG : 5 go routines active```

List of files
c:\temp\media\subdir1\file1.txt
c:\temp\media\subdir2\file2.txt

The list is saved as
subdir1\file1.txt
subdir2\file2.txt

kind of a strange looking log file?

can you delete the log file and run the command again, then post the log file

That's verbatim from the log file. Yes, I did that several times and it produces the same result.

as per the documentation,
" Important Note that you must use / in patterns and not \ even if running on Windows."

so try subdir1/file1.txt

I deleted the file and ran the command again.

2020/10/31 13:25:28 DEBUG : Creating backend with remote "c:\\temp\\media"
2020/10/31 13:25:34 DEBUG : Using config file from "C:\\Users\\ryanhallinger\\.config\\rclone\\rclone.conf"
2020/10/31 13:25:34 INFO  : Starting bandwidth limiter at 8MBytes/s
2020/10/31 13:25:34 DEBUG : fs cache: renaming cache item "c:\\temp\\media" to be canonical "//?/c:/temp/media"
2020/10/31 13:25:34 DEBUG : Creating backend with remote "OneDrive:/media"
2020/10/31 13:25:34 DEBUG : One drive root 'media': Token expired but no uploads in progress - doing nothing
2020/10/31 13:25:34 DEBUG : OneDrive: Loaded invalid token from config file - ignoring
2020/10/31 13:25:35 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2020/10/31 13:25:35 DEBUG : OneDrive: Saved new token in config file
2020/10/31 13:25:36 DEBUG : fs cache: renaming cache item "OneDrive:/media" to be canonical "OneDrive:media"
2020/10/31 13:25:36 DEBUG : subdir1: Excluded
2020/10/31 13:25:36 DEBUG : subdir2: Excluded
2020/10/31 13:25:36 DEBUG : One drive root 'media': Waiting for checks to finish
2020/10/31 13:25:36 DEBUG : One drive root 'media': Waiting for transfers to finish
2020/10/31 13:25:36 INFO  : There was nothing to transfer
2020/10/31 13:25:36 INFO  : 
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time:         8.7s

2020/10/31 13:25:36 DEBUG : 7 go routines active```

did you see my last post?

Thanks @asdffdsa. It seems that all the paths had a backslash i.e. \ instead of a forward slash /. When these are updated, it resolves the issue. Good spotting :slight_smile:

yeah, we both see the world thru a Windows centric lens but alas the world is changing... :upside_down_face:

1 Like

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