Rclone in google colab

What is the problem you are having with rclone?

trying to uses rclone copy or copyto function in google colab (not working)

': error reading source root directory: found file when looking for folder

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

rclone v1.68.1

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

trying to use onedrive (a shared with me folder is my aim)

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

!rclone copyto "remote:Path/file.mp4" "/content/newName" --progress

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[Tappetino]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

2024/10/09 17:56:25 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         3.2s

2024/10/09 17:56:25 DEBUG : 6 go routines active
2024/10/09 17:56:25 NOTICE: Failed to copy: found file when looking for folder

welcome to the forum,

for all commands, please redact as little as possible. what is the real name of the source??

is Path a folder or a file?
run rclone ls Tappetino: -vv
then post full output


run rclone copy "remote:Path/file.mp4" "/content -vv --retries=1
then post full output

"Path/File.mp4"-> should be a file in onedrive

!rclone copy "remote:folderFile.mp4" "/content" "/content -vv --retries=1

/bin/bash: -c: line 1: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 2: syntax error: unexpected end of file

image

  • that is not a valid rclone command
  • not a valid bash command
  • not the same rclone command that you posted up above
  • please stop redacting your commands, makes it harder to help you, ok??

run the following command and post the full output.
please stop redacting the real command and output, ok??

rclone copy "remote:folder/File.mp4" "/content" -vv --retries=1

2024/10/09 19:06:36 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "copy" "Tappetino:II anno a.a. 22-23/I semestre/Teoria dei circuiti/Circuiti Lezione 03 22.09.22.mp4" "/content" "-vv" "--retries=1"]
2024/10/09 19:06:36 DEBUG : Creating backend with remote "Tappetino:II anno a.a. 22-23/I semestre/Teoria dei circuiti/Circuiti Lezione 03 22.09.22.mp4"
2024/10/09 19:06:36 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/10/09 19:06:36 DEBUG : Tappetino: Loaded invalid token from config file - ignoring
2024/10/09 19:06:37 DEBUG : Saving config "token" in section "Tappetino" of the config file
2024/10/09 19:06:37 DEBUG : Keeping previous permissions for config file: -rw-r--r--
2024/10/09 19:06:37 DEBUG : Tappetino: Saved new token in config file
2024/10/09 19:06:39 DEBUG : Creating backend with remote "/content"
2024/10/09 19:06:40 ERROR : OneDrive root 'II anno a.a. 22-23/I semestre/Teoria dei circuiti/Circuiti Lezione 03 22.09.22.mp4': error reading source root directory: found file when looking for folder
2024/10/09 19:06:40 DEBUG : Local file system at /content: Waiting for checks to finish
2024/10/09 19:06:40 DEBUG : Local file system at /content: Waiting for transfers to finish
2024/10/09 19:06:40 ERROR : Attempt 1/1 failed with 1 errors and: found file when looking for folder
2024/10/09 19:06:40 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 3.3s

2024/10/09 19:06:40 DEBUG : 8 go routines active
2024/10/09 19:06:40 NOTICE: Failed to copy: found file when looking for folder

well, is that a file or a folder???

to list files and folders.
rclone lsf Tappetino: -vv

2024/10/09 19:24:10 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "lsf" "Tappetino:" "-vv"]
2024/10/09 19:24:10 DEBUG : Creating backend with remote "Tappetino:"
2024/10/09 19:24:10 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
Allegati/
Circuiti Lezione 13 19.10.22.mp4.url
Fisica B Lezione 06 04.10.22.mp4
2024/10/09 19:24:11 DEBUG : 6 go routines active

should be a file idk

if I refer the program back to /Circuit Theory/
download all the files in the folder but I would only need that file

well, need to figure that out?? log into onedrive website

image

hello please can you help me :cry:

nvm solved add --include "*theNameYouSearch" and everything works , Great GG

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