Reputation: 9
I have been out of the programming world for some time and so am looking for any help that you may be able to provide.
I am trying to create a Google drive set up that automatically creates a new folder that is titled "mm/dd/yyyy" when it receives it's first upload of the day. The files will then continue to automatically be assigned to that folder until a 12.01am the next day, which is when another new folder would be generated once an upload is completed on that day...etc etc. Ideally the script would not create a mandatory folder every day as there will not be uploads everyday, it would only take action once the "command" of a file, photo, video is being uploaded.
Any help would be a massive help. Thanks guys.
P.s no I do not have a script to share I am relearning as we speak.
Upvotes: 0
Views: 171
Reputation: 2974
You can create a programmable pattern for this.
Files:create
api. See documentationFiles:insert
or Files:update
. See Files Insert and Files update.When there's an update from your folder created, you can use the property:
Pass that property as date format "mm/dd/yyyy" to Files:update
:
This will trigger again the Files:create
api.
For more informations:
Upvotes: 0