Rclone copy: files without extensions seen as directories

I am trying to copy files with names like "2f1325833ca8c25096ad2362977461637b1e4174" to a directory and renaming them at the same time. Locally I would just say...

C:\>Copy 2f1325833ca8c25096ad2362977461637b1e4174 C:\directory\file.log

rclone copy however is complaining that ...

D:\Converted\rclone.exe : 2021/03/03 15:27:03 Failed to create file system for "rclone:/directory/file.log" : is a file not a directory

Is there a way I can tell rclone I am copying a file to a file?

You didn't really share a full command.

felix@gemini:~$ rclone copy /etc/hosts GD:
felix@gemini:~$ rclone ls GD:hosts
      221 hosts

That copies to the base of my remote.

This is an example of the command...

D:\Converted\rclone.exe copy \\\Metadata\0999fb6b7a85c004c5c7a6ebd6a3301787797006 rclone:/Metadata/File.log

If you want to change names, you need to use copyto.

felix@gemini:~$ rclone copyto /etc/hosts GD:anothername
felix@gemini:~$ rclone ls GD:anothername
      221 anothername

I'll try that. Thanks

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