我可以用google api设置文件的锁吗? [英] Can I set a lock on files with google api?

查看:148
本文介绍了我可以用google api设置文件的锁吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我看着Gdrive时,也有一个保险丝客户端来安装Gdrive。我想知道,通过此客户端在Gdrive上修改文件时,是否将文件锁定或以任何其他方式设置为正在使用,以防止他人修改互联网上的原始文件?我还没有发现任何关于这个。 Google Docs 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆