Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I set a lock on files with google api?

when I look at Gdrive, there is also a fuse client to mount Gdrive. I wonder, when modifying a file on Gdrive through this client, is the file "locked" or in any other way set to "in use" to prevent others to modify the "original" on the internet? I haven't found anything about this. Isn't there a locking method with Google docs api?

Stef Bon

like image 480
user1388973 Avatar asked May 12 '12 06:05

user1388973


People also ask

Can you lock certain files in Google Drive?

You can use password protection for a Google Drive folder as long as you were the user who created the files. However, you can't encrypt a Google Drive folder, although individual documents can be encrypted. The owner can control permissions and grant them to users with whom the files are shared.

Can you lock a file for editing in Google Drive?

Find the file or folder in Google Drive, Google Docs, Google Sheets, or Google Slides. Open or select the file or folder. Select Restricted. Click Done.


1 Answers

There is no such feature, but you can use the ETag of the file's entry to ensure that no one else has changed the file since it was fetched. This is not exactly the same thing, but it can achieve the same effect of ensuring that changes from one place are not overwritten by changes from another place.

like image 56
Ali Afshar Avatar answered Oct 11 '22 17:10

Ali Afshar