I have a Google drive folder shared with me and have added it to "My Drive" as a shortcut. I need to be able to list and compute on its contents with a script without elevated permissions from WSL 2.
I can ls and access the normal contents of google drive directories just fine under /mnt/g
I see the folder at the location/mnt/g/.shortcut-targets-by-id/1yijRzqC7kODxqq4LRBhHFRyJXqZOMOEO/theSharedFolder
But I am only able to ls .shortcut-targets-by-id and all of its subdirectories with elevated permissions (sudo). (I can ls the individual files in theSharedFolder without elevated permissions, but only once I know their exact names.) This is a problem, since I similarly then cannot list the contents within my script (python::os.listdir or python::pathlib::Path::iterdir).
An ls -ld
shows these folders have 'd--x--x--x', unsurprisingly. But if I attempt to add read permissions with chmod a+r, I get
chmod: changing permissions of '/mnt/g/.shortcut-targets-by-id/': Function not implemented
I would like to find an alternative to running my script with elevated permissions just to list this directory.