Open
Conversation
added the key supportsTeamDrives: True
add teamdrive option
Collaborator
|
Fixes #61 |
Collaborator
|
Code: LGTM but could you please change the
|
aurelienshz
reviewed
Dec 8, 2017
|
|
||
| module.exports = function upload() { | ||
| module.exports = function upload(options) { | ||
| // console.log(options) |
| }; | ||
|
|
||
| if (supportsTeamDrives) { | ||
| console.log('teamdrive=true') |
Collaborator
There was a problem hiding this comment.
How about editing the message that shows up when uploading (something like "Pushing back up to Google Drive (target project is inside a Team Drive)..."?
| @@ -1,3 +1,24 @@ | |||
| The branch works for scripts sitting in a Team Drive by adding the parameter supportsTeamDrives to the upload request. | |||
Collaborator
There was a problem hiding this comment.
Won't say better than @lricoy comment about updating the README
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The branch works for scripts sitting in a Team Drive by adding the parameter supportsTeamDrives to the upload request.
supportTeamDrivesset to true, see https://developers.google.com/apis-explorer/?hl=en_US#p/drive/v3/drive.files.update and https://developers.google.com/drive/v3/reference/files/updatesupportsTeamDrives: truetofixes the problem for a team drive
I've added this as an addition option. I.e.