google-drive-ocamlfuse icon indicating copy to clipboard operation
google-drive-ocamlfuse copied to clipboard

feature request: ability to create shortcuts

Open GregDavidson opened this issue 4 years ago • 4 comments

It seems that shortcuts show up as if they were symlinks but ln -s doesn't seem to create something that works as a shortcut. Or am I just doing it wrong?

GregDavidson avatar Jun 03 '20 06:06 GregDavidson

It should work like that. Google Drive Shortcuts are supported since version 0.7.19. Are you getting some kind of error?

astrada avatar Jun 03 '20 17:06 astrada

I don't get an error, they simply don't work when I click on them from the web interface, whereas the ones I create from the web interface work fine in both environments. I have around 30 people with shares on various subdirectories of a large tree and almost everyone uses the web interface. I have to create links that everyone can use despite everyone having a different GD Path showing in their web interface. I see that the GD shortcuts show up in my Linux fielsystem as absolute paths, despite those not being valid paths in GD so I know you're doing translation from GD shortcut to Linux symbolic link. That suggested to me that with the right path your system might translate a symbolic link to a GD shortcut. I've tried with absolute and relative paths and neither worked for me. Is there something which ought to work?

GregDavidson avatar Jun 04 '20 20:06 GregDavidson

When you create a symlink on the mounted fs, you get a Drive Shortcut only if the target file is in the same mounted fs (they don't work across mountpoints). If the target is outside the mounted fs, you will get an "old" symlink that's a file that contains (as metadata) the target's path in the local fs.

astrada avatar Jun 04 '20 21:06 astrada

For me, trying to symlink a drive file or folder into a drive directory results in a "No such file or directory" error, even though trying to, say, read the exact same path with cat or ls (or just test -f or test -d) works just fine.

TheAllSeeing avatar Sep 19 '20 12:09 TheAllSeeing