Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Extend upsert() to copy from existing files. #6

Open
calebfaruki opened this issue Feb 21, 2019 · 0 comments
Open

Extend upsert() to copy from existing files. #6

calebfaruki opened this issue Feb 21, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@calebfaruki
Copy link
Contributor

Abstract

Some Google Drive users have special template files that need to be present in newly created directories to minimize time. It's also possible that a developer may need to know the ID of this file in advance so that it can be monitored for changes.

Resources

Changes to make

  • _upsertFile() should check for the presence of a templateId and call _duplicateGoogleFile() when appropriate.
  • Create a _duplicateGoogleFile() private method to copy an existing file and upsert it into the target folder.
@calebfaruki calebfaruki added the enhancement New feature or request label Feb 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant