In Rclone mount, how can I change the folder/directory names to folder/directory ID's? Or append fileID to the end of the filename in rclone mount(read only)?

In Rclone mount, how can I change the folder/directory names to folder/directory ID's? I am trying to do this with both Google Drive and Dropbox but am unsure how.

For example if i have a folder in google drive called 'Home Videos'. When I mount it, it becomes Z:/Home Videos/videoname.avi

What i would like it to be is Z:/385638573fhr5ge7/videoname.avi

Any idea's how to do this?

Or would it be possible to append fileID to the end of a file name within rclone mount(read only)?

So from the example above, Z:/Home Videos/videoname-dgd7485hf37484.avi

To my knowledge no such functionality exist. What is the problem you are trying to solve by this?

I am trying to quickly and easily list out every filename with file path and file ID for gdrive as well as track changes that are made to specific folders within the Gdrive account and want the changes to be added to a txt log file which will have file name and file ID. I also have millions of files in the account and don't want to get hit with any API bans.

One way to get these IDs is to use remote control

Then it is up to you how to use it.

you will get something like this:

{
  "Hashes" : {
     "SHA-1" : "f572d396fae9206628714fb2ce00f72e94f2258f",
     "MD5" : "b1946ac92492d2347c6235b4d2611184",
     "DropboxHash" : "ecb65bb98f9d905b70458986c39fcbad7715e5f2fcc3b1f07767d7c83e2438cc"
  },
  "ID": "y2djkhiujf83u33",
  "OrigID": "UYOJVTUW00Q1RzTDA",
  "IsBucket" : false,
  "IsDir" : false,
  "MimeType" : "application/octet-stream",
  "ModTime" : "2017-05-31T16:15:57.034468261+01:00",
  "Name" : "file.txt",
  "Encrypted" : "v0qpsdq8anpci8n929v3uu9338",
  "EncryptedPath" : "kja9098349023498/v0qpsdq8anpci8n929v3uu9338",
  "Path" : "full/path/goes/here/file.txt",
  "Size" : 6,
  "Tier" : "hot",
}

Appreciate your help. I have previously tried using lsjson but seemed to get hit with the API quotas error

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