每次编辑文件(Pdf,Google文档等)时,都会有一个新修订。默认情况下,Google驱动器会删除30天或更旧的文件修订版本或100个版本...如何关闭此功能?
我的最终目标是保留存储在Google云端硬盘中的所有文件的所有修订版本。
我找到了这个资源,但是我还不知道如何实现它。你能带我过去吗?
How to use the "KeepRevisionForever" property to keep all file versions
非常感谢您!
答案 0 :(得分:1)
您要将现有文件的 apples banana orange
0 1 0 0
1 2 0 0
2 3 0 0
设置为keepRevisionForever
。
为此,您可以使用Drive API中的“文件:更新”方法来实现。
此外,您可以在“ Try this API”处测试该方法。
访问“尝试此API”并将true
设置为keepRevisionForever
,然后,在设置文件ID并单击“执行”按钮时,文件true
设置为{ {1}}。
但是不幸的是,在现阶段,似乎没有任何方法可以检查文件keepRevisionForever
是否已经true
。