Gdrive cannot ls or copy subdirectory

rclone ls work:
rclone ls work:/

all work fine

but
rclone ls work:SHARES
rclone ls work:/SHARES

or any sub directory is not working

I was trying to copy a sub directory and rclone gave the error "Failed to ls: directory not found"

I tested this is 1.48.0 and 1.48.0-131

Windows 10 ENT 1809 LTSC, 64 bit

I have tried every possible combination of ls and copy command with no luck

I can copy form GDrive IF I use

rclone copy work:
rclone copy work:/

But if I give an actual directory name, says "directory not found"

I get the same message whether I use the main account or a service account with or without impersonate string.

Did you miss the template that had all the info required?

We're missing the command you are running with -vv and the debug output.

Well I gave the EXACT info needed, -vv says nothing extra

G:\rclone-v1.48.0-131>rclone copy work:/SHARES /SHARES -vv
2019/08/07 12:21:03 DEBUG : rclone: Version "v1.48.0-131-ge502be47-beta" starting with parameters ["rclone" "copy" "work:/SHARES" "/SHARES" "-vv"]
2019/08/07 12:21:03 DEBUG : Using config file from "C:\Users\...\.config\rclone\rclone.conf"
2019/08/07 12:21:03 ERROR : : error reading source directory: directory not found
2019/08/07 12:21:03 INFO : Local file system at \SHARES: Waiting for checks to finish
2019/08/07 12:21:03 INFO : Local file system at \SHARES: Waiting for transfers to finish
2019/08/07 12:21:03 ERROR : Attempt 1/3 failed with 2 errors and: directory not found
2019/08/07 12:21:04 ERROR : : error reading source directory: directory not found
2019/08/07 12:21:04 INFO : Local file system at \SHARES: Waiting for checks to finish
2019/08/07 12:21:04 INFO : Local file system at \SHARES: Waiting for transfers to finish
2019/08/07 12:21:04 ERROR : Attempt 2/3 failed with 2 errors and: directory not found
2019/08/07 12:21:04 ERROR : : error reading source directory: directory not found
2019/08/07 12:21:04 INFO : Local file system at \SHARES: Waiting for checks to finish
2019/08/07 12:21:04 INFO : Local file system at \SHARES: Waiting for transfers to finish
2019/08/07 12:21:04 ERROR : Attempt 3/3 failed with 2 errors and: directory not found
2019/08/07 12:21:04 Failed to copy with 2 errors: last error was: directory not found

G:\rclone-v1.48.0>rclone ls work:/SHARES -vv
2019/08/07 12:23:51 DEBUG : rclone: Version "v1.48.0" starting with parameters ["rclone" "ls" "work:/SHARES" "-vv"]
2019/08/07 12:23:51 DEBUG : Using config file from "C:\Users\...\.config\rclone\rclone.conf"
2019/08/07 12:23:53 Failed to ls: directory not found

I have no problem uploading, or copying files from google drive to google drive, or even via shared with me

That's actually the information I was looking for as that gives the full command and the error, which is why we ask for it rather than guessing what you are typing since we cannot see your screen.

What does:

rclone lsd work:
and
rclone lsf work:

show?

[felix@gemini ~]$ rclone copy /etc/hosts GD:/testing
[felix@gemini ~]$ rclone lsf GD:testing
2/
3/
hosts
today/

Actually I found the issue, if I have the flag
shared_with_me = true
inside rclone.conf then it will NOT show local directories, my fault.

Is there any way to have it inside the conf but maybe have a short flag like

-local
-shared

So for example having the ability to leave shared_with_me = true inside the config file but when running commands doing something like this to specify what the source is:..

rclone ls work/SHARES -local
rclone ls work/SHARES -shared

even when using the copy command using the same flags?

Just less typing is all.

But at least I figured out what I did wrong!

Oh right!

Would you recommend any changes to this:

https://rclone.org/drive/#drive-shared-with-me

to clear up any wording ?

For the enhancement, you can make a an issue on the github for that as well.

maybe instead of

--drive-shared-with-me

it could be just

--shared
or
--shares

Just mean because rclone is cmd prompt app, the less words/typing the better, especially for those of us always doing typos :frowning :frowning: :slight_smile:

But it works! That is the important thing, not so much the wording.

I absolutely love rclone, for the most part it has replaced, aria2c and wget for me.

Keep up the great work!

1 Like

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