Gdrive folder empty

What is the problem you are having with rclone?

I have created a folder in Gdrive, uploaded some files manually and create subfolders.
I have added one file using rclone ("main.py")
but "ls" command listing only files uploaded by rclone. Web page files are not visible.

I have changed scope from "drive.file" to "drive" and no changes.
Web page files are not visible.

It seems that rclone "sees" files only in own folders or own uploaded files.
In a full gdrive rclonemanagement use cases, I have no problems.

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

rclone v1.68.2

  • os/version: Microsoft Windows 10 Enterprise N 22H2 (64 bit)
  • os/kernel: 10.0.19045.5131 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.23.3
  • go/linking: static
  • go/tags: cmount

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

GDrive

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

rclone -vv ls  "mg4-maj:"

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

[mg4-maj]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
service_account_file =
team_drive =
root_folder_id = XXX
token = XXX

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

2024/12/09 15:48:48 DEBUG : rclone: Version "v1.68.2" starting with parameters ["B:\\util\\apps\\rclone\\current\\rclone.exe" "-vvv" "ls" "mg4-maj:"]
2024/12/09 15:48:48 DEBUG : Creating backend with remote "mg4-maj:"
2024/12/09 15:48:48 DEBUG : Using config file from "B:\\util\\apps\\rclone\\current\\rclone.conf"
      854 main.py
2024/12/09 15:48:49 DEBUG : 4 go routines active

welcome to the forum,

using a built-in web app such as sheets?
or a third-party app?

thanks.
Web app = Web page = Google drive web page

readMe, is that owned by you or is a shared with you?

everything is owned by me but shared to others

any Idea?

Everything except "main.py" have been uploaded manually and it's not visible for rclone.
I changed the scope to "drive" because it's related to visibilty but ... no effect

not sure you can change scope like that, after doing the initial OAuth consent.

fwiw, start over, create a new remote from scratch, using new client id+secret and scope = drive
do not change scope after the creation of the remote.

I have created a new one with autogenerated client_id
Tricky but it's working.

Many thanks @asdffdsa

welcome, glad i could help you solve the issue.

yeah, but if it had worked, i would consider that a huge security flaw.

that after doing the initial OAuth, you could change
from a narrow scope drive.file accessing only its own files
to a wider scope drive with full access to all files.

1 Like

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