GoogleDrive

Updated goodls to v126

v1.2.6 (February 23, 2020) When the files are downloaded from the shared folder, if an error occurs, the download was stopped. In this thread, a request for skipping this error was proposed. This request was implemented at v1.2.6. Please try the option of --skiperror like below. $ goodls -u https://drive.google.com/drive/folders/###?usp=sharing --skiperror The detail information and how to get this are https://github.

Updated goodls to v125

v1.2.5 (January 29, 2020) An option for selecting whether the top directory is created was added. $ goodls -u [URL] --notcreatetopdirectory or $ goodls -u [URL] -ntd When this option is NOT used (default situation), when a folder including sub-folders is downloaded, the top folder which is downloaded is created as the top directory under the working directory. When this option is used, the top directory is not created and all files and sub-folders under the top folder are downloaded under the working directory.

Moving File to Specific Folder using Google Apps Script

Gists These are 3 sample scripts for moving a file to the specific folder in Google Drive using Google Apps Script. Sample script 1 In this script, only Drive Service is used. var sourceFileId = "###"; var destinationFolderId = "###"; var file = DriveApp.getFileById(sourceFileId); DriveApp.getFolderById(destinationFolderId).addFile(file); file .getParents() .next() .removeFile(file); Sample script 2 In this script, only Drive API at Advanced Google services. (In this case, it’s Drive API v2.) var sourceFileId = "###"; var destinationFolderId = "###"; Drive.

Updated goodls to v122

v1.2.2 (December 12, 2018) When files are downloaded from a specific folder, it got to be able to select mimeType. By this, files with the specific mimeType in the specific folder can be retrieved. For this, I updated the go library go-getfilelist. $ goodls -u [URL] -key [APIkey] -m "application/pdf,image/png" The detail information and how to get this are https://github.

Updated goodls to v121

v1.2.1 (November 25, 2018) API key got to be able to be used by an environment variable. When GOODLS_APIKEY as the environment variable is set API key, goodls uses API key from the environment variable. The detail information and how to get this are https://github.

Updated goodls to v111

goodls was updated to v.1.1.1 v1.1.1 (November 13, 2018) Version of go-getfilelist was updated. Because the structure of drive.File got to be able to be used, I also updated this application. The detail information and how to get this are https://github.

Updated goodls to v110

goodls was updated to v.1.1.0 v1.1.0 (November 4, 2018) By using API key, files from the shared folder got to be able to be downloaded while keeping the folder structure. This demonstration can be seen at Demo. By using API key, the information of shared file and folder can be also retrieved. About the option of --extension and -e, when -e ms is used, Google Docs (Document, Spreadsheet, Slides) are converted to Microsoft Docs (Word, Excel, Powerpoint), respectively.

Updated goodls to v103

goodls was updated to v.1.0.3 v1.0.3 (September 4, 2018) When the files are downloaded, the progress of downloading got to be able to be displayed. This scene can be seen at this demonstration video. If the new option of --np is used, the progress is not displayed. The detail information and how to get this are https://github.

Updated goodls to v102

goodls was updated to v.1.0.2 v1.0.2 (May 10, 2018) Files with large size has gotten to be able to be used. In order to download files with large size (several gigabytes), files are saved by chunks. The detail information and how to get this are https://github.

Updated goodls to v101

goodls was updated to v.1.0.1 v1.0.1 (January 11, 2018) In order to download several files, a datafile including URLs using Standard Input and Pipe have gotten to be able to be inputted. The detail information and how to get this are https://github.

CLI Tool - goodls

Overview This is a CLI tool to download shared files from Google Drive. Description We have already known that the shared files on Google Drive can be downloaded without the authorization. But when the size of file becomes large (about 40MB), it requires a little ingenuity to download the file. It requires to access 2 times to Google Drive. At 1st access, it retrieves a cookie and a code for downloading.