Rclone Failing to copy File because it thinks it is a directory

What is the problem you are having with rclone?

When I try to sync a file without an extension, rclone does not copy and puts this error message. However it is a file.

2022/01/17 09:14:12 ERROR : Games/XXXXX/AAAAAAAAA: Failed to copy: is a directory not a file

Run the command 'rclone version' and share the full output of the command.

'''rclone v1.57.0

  • os/version: Microsoft Windows 10 Pro 2009 (64 bit)
  • os/kernel: 10.0.19044.1466 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: dynamic
  • go/tags: cmount'''

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
--> YES

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

Google Drive (Encrypt)

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

rclone sync "Z:\Videogames" "Gdrive_encrypt:\VideoGames" --max-transfer 600G --buffer-size=1G --transfers=4  --fast-list --max-backlog 50000 --log-level INFO --log-file C:\Media\Logs\Videogames.txt 

A log from the command with the -vv flag

2022/01/20 22:22:28 DEBUG : l5nnk6eputcc1tva34mlei1guqq1f12ie6vkkk3kgffr2a5ksocg: Sending chunk 436207616 length 8388608
2022/01/20 22:22:28 DEBUG : b6q82dfilbasrie7hs194h0l5t3o0i08gr7d2odgbj3oo0h1ieeg: Sending chunk 184549376 length 8388608
2022/01/20 22:22:29 DEBUG : l5nnk6eputcc1tva34mlei1guqq1f12ie6vkkk3kgffr2a5ksocg: Sending chunk 444596224 length 8388608
2022/01/20 22:22:29 DEBUG : fnulktm281th7oa87f5637kjem5ne0l8fdi8nigiq932i8dr33t0: Sending chunk 989855744 length 8388608
2022/01/20 22:22:29 DEBUG : 8r1c2eamqbef19k1sqq8j4v6sk: Sending chunk 0 length 8388608
2022/01/20 22:22:29 DEBUG : b6q82dfilbasrie7hs194h0l5t3o0i08gr7d2odgbj3oo0h1ieeg: Sending chunk 192937984 length 8388608
2022/01/20 22:22:29 DEBUG : fnulktm281th7oa87f5637kjem5ne0l8fdi8nigiq932i8dr33t0: Sending chunk 998244352 length 8388608
2022/01/20 22:22:29 DEBUG : l5nnk6eputcc1tva34mlei1guqq1f12ie6vkkk3kgffr2a5ksocg: Sending chunk 452984832 length 8388608
2022/01/20 22:22:29 DEBUG : b6q82dfilbasrie7hs194h0l5t3o0i08gr7d2odgbj3oo0h1ieeg: Sending chunk 201326592 length 8388608
2022/01/20 22:22:30 DEBUG : 8r1c2eamqbef19k1sqq8j4v6sk: Sending chunk 8388608 length 8388608
2022/01/20 22:22:30 DEBUG : l5nnk6eputcc1tva34mlei1guqq1f12ie6vkkk3kgffr2a5ksocg: Sending chunk 461373440 length 8388608
2022/01/20 22:22:30 DEBUG : fnulktm281th7oa87f5637kjem5ne0l8fdi8nigiq932i8dr33t0: Sending chunk 1006632960 length 8388608

The log you shared has no value as it's a second or two of some encrypted file transferring.

Pick that one directory/file you are having a problem with and just try to copy that or even rclone ls it and share the full debug log.

I think i figured it out thanks Animosity022. i think the problem was that in Gdrive I had a directory with the same exact name as the file i was trying to copy. So even thoug on my drive it worked, Gdrive was having an issue with it. i will post the log here in about an hour if it doesn't work. Thanks

Ok to close. I had files and directories named exactly the same

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