astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.54k stars 351 forks source link

Overwritten file lost link with Google Classroom #670

Open maxbambi opened 3 years ago

maxbambi commented 3 years ago

I'm a teacher and I'm using Google Classroom and its related Google Drive folders. I would like to overwrite pdf files and images posted by students with mine. If I use online tools all is ok, but if I download files, use local programs to edit them and then overwrite original ones in the folder mounted with ocamlfuse, the link in Classroom is lost and in browser you can still view the original file, even if in drive folder there is the new file. It appears that Classroom continues to link old file in trashbin.

Is it possible to set ocamlfuse to force a really overwriting of old file?

astrada commented 3 years ago

To keep the history/metadata of the target file when moving/renaming you can set mv_keep_target=true in the config file.

chamdim commented 2 years ago

@astrada this solution doesn't work. the issue exists. The target file became trushed after editing and overwriting