Google云端硬盘的“每个文件"范围是否会级联到子文件夹/文件中? [英] Does Google Drive's 'per file' scope cascade into child folders/files?

查看:71
本文介绍了Google云端硬盘的“每个文件"范围是否会级联到子文件夹/文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将开始在Google Drive API的基础上构建一个小型应用程序.

I'm about to start building a small app on top of the Google Drive API.

我对于为应用提供完全允许的访问范围来访问用户的云端硬盘感到有些紧张,并且希望为它提供每个文件"访问权限.

I'm a little bit nervous about giving the app full permissive scope to access a user's Drive and would prefer to give it a 'per file' access scope.

基本思想是,该应用程序最初将在用户的云端硬盘中创建一个文件夹(简称为应用程序文件夹").然后,我希望我的应用程序也可以访问该特定应用程序文件夹"中的文件和子文件夹,而不管它们是如何创建/上传到云端硬盘的(但无权访问用户其余的云端硬盘).

The basic idea is that the app would initially create a folder (let's call it the App Folder) in a user's Drive. I then want my app to also have access to the files and subfolders inside that particular App Folder, regardless of how they were created/uploaded to Drive (but without having access to the rest of the user's Drive).

因此,我的问题(在构建此组件之前)是这样的:每个文件"作用域是否还允许该应用访问(读取/管理/移动)App文件夹中未包含的所有子文件/子文件夹由应用创建.

So, my question (before I build this thing out) is this: does the 'per file' scope also allow the app to access (read/manage/move) any child files/subfolders inside the App Folder that were not created by the app.

换句话说,每个文件"范围是否从应用程序文件夹"级联为子文件夹和文件?

In other words, does the 'per file' scope cascade down from the App Folder into child folders and files?

或者,由应用程序本身创建的文件的每个文件"作用域是 吗?

Or, is the 'per file' scope solely for files that were created by the app itself?

基本上,我所追求的是Google云端硬盘相当于Dropbox的应用文件夹",如此处所述-> https://www.dropbox.com/developers/core/gs

Basically, what I'm after is a Google Drive equivalent of Dropbox's 'App folder' as described here --> https://www.dropbox.com/developers/core/gs

任何人都知道-到目前为止,我一直在努力寻找答案.

Anyone know - I've struggled to find an answer to this so far.

谢谢

推荐答案

每个文件的作用域适用于由用户使用该应用程序创建或显式打开的文件.此权限不会级联,但是当然,如​​果您的应用程序创建了文件夹,它可以在其中创建文件,并且无权读取其他文件.

Per-file scope is for files that were created or explicitly opened by the user with that application. This permission does not cascade, but of course if your application creates the folder, it can create files within there, and will not have access to read other files.

这与Dropbox应用程序文件夹不同,它具有更严格的权限. Google正在开发与此相关的其他功能,请保持关注

This is not the same as the Dropbox application folder, it is a tighter permission. Google are working on other features in this vein, so please stay tuned

这篇关于Google云端硬盘的“每个文件"范围是否会级联到子文件夹/文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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