google-drive-remarkable-sync icon indicating copy to clipboard operation
google-drive-remarkable-sync copied to clipboard

Syncs folder inside a folder

Open hmenzagh opened this issue 4 years ago • 3 comments

When I sync to a Folder on my RM, I get /Google Drive/Books/*.pdf instead of /Google Drive/*.pdf since this library is mostly centered around a single folder sync it would be nice to have the option of uploading the files directly in the parent directory ! Is there a way of doing that ?

hmenzagh avatar Nov 16 '20 18:11 hmenzagh

I vaguely recall being able to set gdFolderSearchParams to a string that returned Drive's root folder. I can't recall what that was. Perhaps try the empty string or "root". Alternatively, you could take a look at the expression syntax at https://developers.google.com/drive/api/v3/search-files. I hope that helps.

bsdz avatar Nov 16 '20 18:11 bsdz

I dit try that, and root works, but it creates a folder called My Drive instead .. x)

hmenzagh avatar Nov 16 '20 18:11 hmenzagh

I don't think the solution to this issue is to allow to save to remarkable's root folder, but rather that the contents of the gDrive folder is synced to the selected remarkable folder instead of the folder itself. The way this works now, you will always end up with an unnecessary folder whose only contents is another folder. But maybe that is harder to implement.

Edit: Not that hard to implement, I added a new pull request #22

oyvindlr avatar May 21 '21 09:05 oyvindlr