Downloading single files using on the fly http remote to gdrive creates a folder with the name of the file

What is the problem you are having with rclone?

Rclone is creating a folder with the name of the file, instead of just saving the file in the folder specified.

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

rclone v1.59.0
- os/version: debian 9.13 (64 bit)
- os/kernel: 4.19.123-feral (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.3
- go/linking: static
- go/tags: none

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

Google Drive

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

rclone copy ":http,url='https://archive.org'":"/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip" GD:"/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip" --checkers 2 --checksum --drive-acknowledge-abuse --drive-chunk-size 256M --drive-pacer-min-sleep 100ms --fast-list --log-level DEBUG --low-level-retries 9999 --retries 9999 --retries-sleep 2s --stats 0 --stats-file-name-length 70 --tpslimit 1 --tpslimit-burst 1 --transfers 2 --use-mmap --user-agent 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36';

Note: You could substitute the file in the command above for a different smaller file if you wanted to try it yourself.

The rclone config contents with secrets removed.

[GD]
type = drive
client_id = ***REDACTED***.apps.googleusercontent.com
client_secret = ***REDACTED***
scope = drive
token = {"access_token":"***REDACTED***","token_type":"Bearer","refresh_token":"***REDACTED***","expiry":"2022-07-17T16:39:46.632225245Z"}
root_folder_id = ***REDACTED***

A log from the command with the -vv flag

2022/07/17 17:16:32 INFO  : Downloading file(s) 'https://archive.org/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip'.
2022/07/17 17:16:32 INFO  : Starting transaction limiter: max 1 transactions/s with burst 1
2022/07/17 17:16:32 DEBUG : rclone: Version "v1.59.0" starting with parameters ["rclone" "copy" ":http,url='https://archive.org':/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip" "GD:/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip" "--checkers" "2" "--checksum" "--drive-acknowledge-abuse" "--drive-chunk-size" "256M" "--drive-pacer-min-sleep" "100ms" --fast-list" "--log-level" "DEBUG" "--low-level-retries" "1" "--retries" "1" "--retries-sleep" "2s" "--stats" "0" "--stats-file-name-length" "70" "--tpslimit" "1" "--tpslimit-burst" "1" "--transfers" "2" "--use-mmap" "--user-agent" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"]
2022/07/17 17:16:32 DEBUG : Creating backend with remote ":http,url='https://archive.org':/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip"
2022/07/17 17:16:32 DEBUG : :http: detected overridden config - adding "{Ji4uM}" suffix to name
2022/07/17 17:16:32 DEBUG : Using config file from "/path/to/.config/rclone/rclone.conf"
2022/07/17 17:16:33 DEBUG : Assuming path is a file as HEAD response is redirect (302 Found) to a path that does not end with '/': https://ia801700.us.archive.org/4/items/redump.psp.p2/Shin%20Megami%20Tensei%20-%20Persona%20%28USA%29.zip
2022/07/17 17:16:33 DEBUG : If path is a directory you must add a trailing '/'
2022/07/17 17:16:33 DEBUG : Root: https://archive.org/download/redump.psp.p2/
2022/07/17 17:16:33 DEBUG : fs cache: adding new entry for parent of ":http,url='https://archive.org':/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip", ":http{Ji4uM}:/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip"
2022/07/17 17:16:33 DEBUG : Creating backend with remote "GD:/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip"
2022/07/17 17:16:33 DEBUG : GD: detected overridden config - adding "{Gyd6y}" suffix to name
2022/07/17 17:16:43 DEBUG : fs cache: renaming cache item "GD:/download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip" to be canonical "GD{Gyd6y}:download/redump.psp.p2/Shin Megami Tensei - Persona (USA).zip"
2022/07/17 17:16:46 DEBUG : Shin Megami Tensei - Persona (USA).zip: Need to transfer - File not found at Destination
2022/07/17 17:16:53 DEBUG : Shin Megami Tensei - Persona (USA).zip: Sending chunk 0 length 268435456
2022/07/17 17:19:59 DEBUG : Shin Megami Tensei - Persona (USA).zip: Sending chunk 268435456 length 268435456
2022/07/17 17:24:11 DEBUG : Shin Megami Tensei - Persona (USA).zip: Sending chunk 536870912 length 11851570
2022/07/17 17:24:19 INFO  : Shin Megami Tensei - Persona (USA).zip: Copied (new)
2022/07/17 17:24:19 DEBUG : 7 go routines active

That's how it works:

rclone copy

You probably want copyto instead of copy.

Yeah copyto works, thanks for that.

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