我可以用google api设置文件的锁吗? [英] Can I set a lock on files with google api?
问题描述
Stef Bon
没有此功能,但您可以使用 ETag文件的条目,以确保没有其他人在文件被提取后改变了文件。这不完全一样,但它可以达到同样的效果,即确保来自一个地方的更改不会被来自其他地方的更改覆盖。
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
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.
这篇关于我可以用google api设置文件的锁吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!