user1388973
user1388973

Reputation: 141

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

Upvotes: 5

Views: 2426

Answers (2)

Ali Afshar
Ali Afshar

Reputation: 41643

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.

Upvotes: 6

sblom
sblom

Reputation: 27343

Pretty sure they don't have that. You should consider suggesting it in the Google Docs feature request forums.

Upvotes: 1

Related Questions