This is another in my series on SuperFetch plugins.
There are of course already 2 Drive API services (Drive and DriveApp) for Apps Script. As well as built in caching and list handling, SuperFetch plugin takes a slightly different approach to these Drive APIS, which are about navigating Drive via a series of file and folder ids.
Drv supports ids, but it also provides a more standard path style of file access (eg user/files/documents/a.doc) which I personally prefer to messing around with all those ids. Not all methods are supported yet of course, but I’ll add more over time.
Behind the scenes, Drv use the Drive REST API. It doesn’t use the built in Apps Script services at all.
The main additional features of Drv are
Access files and folders by their path and name as well as their id
Create intermediate folders on the fly
Handle big lists of files automatically without bothering about paging
Built in caching
Closures for relative paths
Wildcards
Version pruning
Resumable uploads for big files
Automatic detection of and conversion to and from JSON
Export and conversions automatically supported
I’ll cover some of these in this article and some more advanced topics in future articles
Drv is a SuperFetch plugin to access the Google Drive API. SuperFetch is a proxy for UrlFetchApp with additional features – see SuperFetch – a proxy enhancement to Apps Script UrlFetch for how it works and what it does.
This is another in my series on SuperFetch plugins.
There are of course already 2 Drive API services (Drive and DriveApp) for Apps Script. As well as built in caching and list handling, SuperFetch plugin takes a slightly different approach to these Drive APIS, which are about navigating Drive via a series of file and folder ids.
Drv supports ids, but it also provides a more standard path style of file access (eg user/files/documents/a.doc) which I personally prefer to messing around with all those ids. Not all methods are supported yet of course, but I’ll add more over time.
Behind the scenes, Drv use the Drive REST API. It doesn’t use the built in Apps Script services at all.
The main additional features of Drv are
https://ramblings.mcpher.com/apps-script/superfetch-proxy/plugin-drive-1/