Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcloud: allow configuration of root folder ID #3957

hfornazier opened this issue Feb 11, 2020 · 2 comments

pcloud: allow configuration of root folder ID #3957

hfornazier opened this issue Feb 11, 2020 · 2 comments


Copy link

@hfornazier hfornazier commented Feb 11, 2020

What is your current rclone version (output from rclone version)?


What problem are you are trying to solve?

To define a variable in rclone.config to indicate which folder should be accessed.

How do you think rclone should be changed to solve that?

Rclone already has access to the PCloud Root.

There is already a constant "rootID" in the code, however, I believe that currently it always accesses Pcloud folder 0 (zero).

PCloud works on its API with a number of folders.

If the user can enter the "rootID" the folder number would be very interesting to preserve the entire file structure in the cloud.

This way, even if the rclone.config file is exposed on a PC, the user would only have access to that folder.

This would be excellent already, and in the future we could even use a "rootFolder = / Tests" so that the user could put the name of the Home folder.


This comment has been minimized.

Copy link

@hfornazier hfornazier commented Feb 11, 2020


@ncw ncw added this to the Help Wanted milestone Feb 12, 2020

This comment has been minimized.

Copy link

@ncw ncw commented Feb 12, 2020

This would make a nice issue for someone wanting to get into rclone development. There is a free tier for pcloud accounts.

To implement this a new parameter root_folder_id needs to be added to the backend (named like that for consistency with the other backends). For example like this one in the drive backend, but with the default "d0". This needs docs on how to find the root_folder_id.

}, {
Name: "root_folder_id",
Help: `ID of the root folder
Leave blank normally.
Fill in to access "Computers" folders (see docs), or for rclone to use
a non root folder as its starting point.
Note that if this is blank, the first time rclone runs it will fill it
in with the ID of the root folder.
}, {

This needs to be defined in the Options struct as RootFolderID string config:"root_folder_id"`

type Options struct {
Enc encoder.MultiEncoder `config:"encoding"`

Then all uses of rootID, need to be replaced with f.opt.RootFolderID

rootID = "d0" // ID of root folder is always this

@ncw ncw changed the title Possibility to configure the "rootID" variable in Rclone.config pcloud: allow configuration of root folder ID Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.