Install drive-cli brew install pip3 install drive-cliĭrive login doesn’t work. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored. Example usage: ?orderBy=folder,modifiedTime desc,name. Each key sorts ascending by default, but may be reversed with the ‘desc’ modifier. Valid keys are ‘createdTime’, ‘folder’, ‘modifiedByMeTime’, ‘modifiedTime’, ‘name’, ‘name_natural’, ‘quotaBytesUsed’, ‘recency’, ‘sharedWithMeTime’, ‘starred’, and ‘viewedByMeTime’. OrderBy sets the optional parameter “orderBy”: A comma-separated list of sort keys. absolute Show absolute path to file (will only show path from first parent) ![]() We are going to download the file in our server via (). This function will set the directory to download the file from google drive, and another directory to serve the file to the requested user. name-width Width of name column, default: 40, minimum: 9, use 0 for full width In our express app, we are defining a get request as downloadAFile. q, -query Default query: "trashed = false and 'me' in owners". service-account Oauth service account filename, used for server to server communication without user interaction (filename path is relative to config dir) access-token Oauth access token, only recommended for short-lived requests because of short lifetime (for advanced users) refresh-token Oauth refresh token used to get access token (for advanced users) c, -config Application path, default: /Users/aung/.gdrive $ gdrive list -order folder,createdTime -m 500 -name-width 0 -absolute Install gdriveĪfter entering verification code from browser: $ ls ~/.gdrive ![]() Gcloud doesn’t provide command to access google drive. Let us understand some points from the above method.Using gcloud cli: gcloud auth login -enable-gDRIVE-access
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |