{"id":19651686,"url":"https://github.com/tanaikech/node-getfilelist","last_synced_at":"2026-03-11T05:01:30.824Z","repository":{"id":57252130,"uuid":"157479088","full_name":"tanaikech/node-getfilelist","owner":"tanaikech","description":"This is a Node.js module to retrieve the file list with the folder tree from the specific folder of Google Drive.","archived":false,"fork":false,"pushed_at":"2020-09-02T23:16:47.000Z","size":53,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T08:51:43.656Z","etag":null,"topics":["file-list","folder-structure","google-drive","google-drive-api","node-module"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tanaikech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-14T02:35:14.000Z","updated_at":"2025-08-23T03:35:07.000Z","dependencies_parsed_at":"2022-09-05T00:00:20.763Z","dependency_job_id":null,"html_url":"https://github.com/tanaikech/node-getfilelist","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tanaikech/node-getfilelist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanaikech%2Fnode-getfilelist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanaikech%2Fnode-getfilelist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanaikech%2Fnode-getfilelist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanaikech%2Fnode-getfilelist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanaikech","download_url":"https://codeload.github.com/tanaikech/node-getfilelist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanaikech%2Fnode-getfilelist/sbom","scorecard":{"id":867428,"data":{"date":"2025-08-11","repo":{"name":"github.com/tanaikech/node-getfilelist","commit":"e021034e0a765ecc44689acd47b5f6fd0b7643a0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE:0","Info: FSF or OSI recognized license: MIT License: LICENCE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T03:03:52.222Z","repository_id":57252130,"created_at":"2025-08-24T03:03:52.222Z","updated_at":"2025-08-24T03:03:52.222Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30372125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-list","folder-structure","google-drive","google-drive-api","node-module"],"created_at":"2024-11-11T15:07:30.233Z","updated_at":"2026-03-11T05:01:30.798Z","avatar_url":"https://github.com/tanaikech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-getfilelist\n\n[![Build Status](https://travis-ci.org/tanaikech/node-getfilelist.svg?branch=master)](https://travis-ci.org/tanaikech/node-getfilelist)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENCE)\n\n\u003ca name=\"top\"\u003e\u003c/a\u003e\n\n# Overview\n\nThis is a Node.js module to retrieve the file list with the folder tree from the specific folder of own Google Drive and shared Drives.\n\n# Description\n\nWhen I create applications for using Google Drive, I often retrieve a file list from a folder in the application. So far, I had created the script for retrieving a file list from a folder for each application. Recently, I thought that if there is the script for retrieving the file list with the folder tree from the folder of Google Drive as a module, it will be useful for me and other users. So I created this.\n\n## Features\n\n- This module retrieves all files from a folder in Google Drive.\n- All files include the folder structure in Google Drive.\n- Only folder tree can be also retrieved.\n\n# Install\n\n```\n$ npm install --save-dev google-drive-getfilelist\n```\n\nor\n\n```\n$ npm install --global google-drive-getfilelist\n```\n\nYou can also see this module at [https://www.npmjs.com/package/google-drive-getfilelist](https://www.npmjs.com/package/google-drive-getfilelist).\n\n# Method\n\n| Method                | Explanation                                            |\n| :-------------------- | :----------------------------------------------------- |\n| GetFolderTree(object) | Retrieve only folder structure from a folder           |\n| GetFileList(object)   | Retrieve file list with folder structure from a folder |\n\n# Usage\n\nThere are 3 patterns for using this library.\n\n## 1. Use API key\n\nThis is a sample script using API key. When you want to retrieve the API key, please do the following flow.\n\n1. Login to Google.\n2. Access to [https://console.cloud.google.com/?hl=en](https://console.cloud.google.com/?hl=en).\n3. Click select project at the right side of \"Google Cloud Platform\" of upper left of window.\n4. Click \"NEW PROJECT\"\n   1. Input \"Project Name\".\n   2. Click \"CREATE\".\n   3. Open the created project.\n   4. Click \"Enable APIs and get credentials like keys\".\n   5. Click \"Library\" at left side.\n   6. Input \"Drive API\" in \"Search for APIs \u0026 Services\".\n   7. Click \"Google Drive API\".\n   8. Click \"ENABLE\".\n   9. Back to [https://console.cloud.google.com/?hl=en](https://console.cloud.google.com/?hl=en).\n   10. Click \"Enable APIs and get credentials like keys\".\n   11. Click \"Credentials\" at left side.\n   12. Click \"Create credentials\" and select API key.\n   13. Copy the API key. You can use this API key.\n\n### Sample script\n\n```javascript\nconst getfilelist = require(\"google-drive-getfilelist\");\n\nconst resource = {\n  auth: \"### API key ###\",\n  id: \"### Folder ID ###\",\n  fields: \"files(name,id)\",\n};\n\ngetfilelist.GetFileList(resource, function (err, res) {\n  // or getfilelist.GetFolderTree(resource, function(err, res) {\n  if (err) {\n    console.log(err);\n    return;\n  }\n  console.log(res);\n});\n```\n\n### Note\n\n- **When you want to retrieve the file list from the folder using API key, the folder is required to be shared.**\n- You can modify the property of `fields`. When this is not used, the default fields are used.\n\n## 2. Use OAuth2\n\nDocument of OAuth2 is [here](https://developers.google.com/identity/protocols/OAuth2).\n\n### Sample script\n\nIn this sample script, the process of OAuth2 uses [the quickstart of Google](https://developers.google.com/drive/api/v3/quickstart/nodejs). Please check this.\n\n```javascript\nconst fs = require(\"fs\");\nconst readline = require(\"readline\");\nconst { google } = require(\"googleapis\");\n\n// If modifying these scopes, delete token.json.\nconst SCOPES = [\"https://www.googleapis.com/auth/drive.metadata.readonly\"];\n// The file token.json stores the user's access and refresh tokens, and is\n// created automatically when the authorization flow completes for the first\n// time.\nconst TOKEN_PATH = \"token.json\";\n\n// Load client secrets from a local file.\nfs.readFile(\"credentials.json\", (err, content) =\u003e {\n  if (err) return console.log(\"Error loading client secret file:\", err);\n  // Authorize a client with credentials, then call the Google Drive API.\n  authorize(JSON.parse(content), getfilelist);\n});\n\n/**\n * Create an OAuth2 client with the given credentials, and then execute the\n * given callback function.\n * @param {Object} credentials The authorization client credentials.\n * @param {function} callback The callback to call with the authorized client.\n */\nfunction authorize(credentials, callback) {\n  const { client_secret, client_id, redirect_uris } = credentials.installed;\n  const oAuth2Client = new google.auth.OAuth2(\n    client_id,\n    client_secret,\n    redirect_uris[0]\n  );\n\n  // Check if we have previously stored a token.\n  fs.readFile(TOKEN_PATH, (err, token) =\u003e {\n    if (err) return getAccessToken(oAuth2Client, callback);\n    oAuth2Client.setCredentials(JSON.parse(token));\n    callback(oAuth2Client);\n  });\n}\n\n/**\n * Get and store new token after prompting for user authorization, and then\n * execute the given callback with the authorized OAuth2 client.\n * @param {google.auth.OAuth2} oAuth2Client The OAuth2 client to get token for.\n * @param {getEventsCallback} callback The callback for the authorized client.\n */\nfunction getAccessToken(oAuth2Client, callback) {\n  const authUrl = oAuth2Client.generateAuthUrl({\n    access_type: \"offline\",\n    scope: SCOPES,\n  });\n  console.log(\"Authorize this app by visiting this url:\", authUrl);\n  const rl = readline.createInterface({\n    input: process.stdin,\n    output: process.stdout,\n  });\n  rl.question(\"Enter the code from that page here: \", (code) =\u003e {\n    rl.close();\n    oAuth2Client.getToken(code, (err, token) =\u003e {\n      if (err) return console.error(\"Error retrieving access token\", err);\n      oAuth2Client.setCredentials(token);\n      // Store the token to disk for later program executions\n      fs.writeFile(TOKEN_PATH, JSON.stringify(token), (err) =\u003e {\n        if (err) console.error(err);\n        console.log(\"Token stored to\", TOKEN_PATH);\n      });\n      callback(oAuth2Client);\n    });\n  });\n}\n\n/**\n * Using getfilelist.\n */\nfunction getfilelist(auth) {\n  const getfilelist = require(\"google-drive-getfilelist\");\n\n  const resource = {\n    auth: auth,\n    id: \"### Folder ID ###\",\n    fields: \"files(name,id)\",\n  };\n\n  getfilelist.GetFileList(resource, function (err, res) {\n    // or getfilelist.GetFolderTree(resource, function(err, res) {\n    if (err) {\n      console.log(err);\n      return;\n    }\n    console.log(res);\n  });\n}\n```\n\n### Note\n\n- Here, as a sample, the script of the authorization uses the script of [quickstart](https://developers.google.com/drive/api/v3/quickstart/nodejs).\n- You can modify the property of `fields`. When this is not used, the default fields are used.\n\n## 3. Use Service account\n\nDocument of Service account is [here](https://developers.google.com/identity/protocols/OAuth2ServiceAccount).\n\n### Sample script\n\n```javascript\nconst { google } = require(\"googleapis\");\nconst getfilelist = require(\"google-drive-getfilelist\");\nconst key = require(\"### json file including public/private key pair ###\");\n\nconst jwtClient = new google.auth.JWT(\n  key.client_email,\n  null,\n  key.private_key,\n  [\"https://www.googleapis.com/auth/drive\"],\n  null\n);\n\nconst resource = {\n  auth: jwtClient,\n  id: \"### Folder ID ###\",\n  fields: \"files(name,id)\",\n};\n\ngetfilelist.GetFileList(resource, function (err, res) {\n  // or getfilelist.GetFolderTree(resource, function(err, res) {\n  if (err) {\n    console.log(err);\n    return;\n  }\n  console.log(res);\n});\n```\n\n### Note\n\n- You can modify the property of `fields`. When this is not used, the default fields are used.\n\n# Values\n\n![](images/downloadFolder_sample.png)\n\nAs a sample, when the values are retrieved from above structure, the results of `GetFolderTree()` becomes as follows.\n\n## Values retrieved by GetFolderTree()\n\n```javascript\ngetfilelist.GetFolderTree(resource, function (err, res) {\n  if (err) {\n    console.log(err);\n    return;\n  }\n  console.log(res);\n});\n```\n\n```json\n{\n  \"id\": [\n    [\"folderIdOfsampleFolder1\"],\n    [\"folderIdOfsampleFolder1\", \"folderIdOfsampleFolder_2a\"],\n    [\"folderIdOfsampleFolder1\", \"folderIdOfsampleFolder_2b\"],\n    [\n      \"folderIdOfsampleFolder1\",\n      \"folderIdOfsampleFolder_2a\",\n      \"folderIdOfsampleFolder_2a_3a\"\n    ],\n    [\n      \"folderIdOfsampleFolder1\",\n      \"folderIdOfsampleFolder_2b\",\n      \"folderIdOfsampleFolder_2b_3a\"\n    ],\n    [\n      \"folderIdOfsampleFolder1\",\n      \"folderIdOfsampleFolder_2b\",\n      \"folderIdOfsampleFolder_2b_3b\"\n    ],\n    [\n      \"folderIdOfsampleFolder1\",\n      \"folderIdOfsampleFolder_2b\",\n      \"folderIdOfsampleFolder_2b_3b\",\n      \"folderIdOfsampleFolder_2b_3b_4a\"\n    ]\n  ],\n  \"names\": [\n    \"sampleFolder1\",\n    \"sampleFolder_2a\",\n    \"sampleFolder_2b\",\n    \"sampleFolder_2a_3a\",\n    \"sampleFolder_2b_3a\",\n    \"sampleFolder_2b_3b\",\n    \"sampleFolder_2b_3b_4a\"\n  ],\n  \"folders\": [\n    \"folderIdOfsampleFolder1\",\n    \"folderIdOfsampleFolder_2a\",\n    \"folderIdOfsampleFolder_2b\",\n    \"folderIdOfsampleFolder_2a_3a\",\n    \"folderIdOfsampleFolder_2b_3a\",\n    \"folderIdOfsampleFolder_2b_3b\",\n    \"folderIdOfsampleFolder_2b_3b_4a\"\n  ]\n}\n```\n\n## Values retrieved by Do()\n\n```javascript\ngetfilelist.GetFileList(resource, function (err, res) {\n  if (err) {\n    console.log(err);\n    return;\n  }\n  console.log(res);\n});\n```\n\n```json\n{\n  \"searchedFolder\": {\n    \"id\": \"###\",\n    \"name\": \"sampleFolder1\",\n    \"mimeType\": \"application/vnd.google-apps.folder\",\n    \"parents\": [\"###\"],\n    \"createdTime\": \"2000-01-01T01:23:45.000Z\",\n    \"modifiedTime\": \"2000-01-01T01:23:45.000Z\",\n    \"webViewLink\": \"https://drive.google.com/drive/folders/###\",\n    \"owners\": [\n      { \"displayName\": \"###\", \"permissionId\": \"###\", \"emailAddress\": \"###\" }\n    ],\n    \"shared\": true\n  },\n  \"folderTree\": {\n    \"id\": [\n      [\"folderIdOfsampleFolder1\"],\n      [\"folderIdOfsampleFolder1\", \"folderIdOfsampleFolder_2a\"],\n      [\"folderIdOfsampleFolder1\", \"folderIdOfsampleFolder_2b\"],\n      [\n        \"folderIdOfsampleFolder1\",\n        \"folderIdOfsampleFolder_2a\",\n        \"folderIdOfsampleFolder_2a_3a\"\n      ],\n      [\n        \"folderIdOfsampleFolder1\",\n        \"folderIdOfsampleFolder_2b\",\n        \"folderIdOfsampleFolder_2b_3a\"\n      ],\n      [\n        \"folderIdOfsampleFolder1\",\n        \"folderIdOfsampleFolder_2b\",\n        \"folderIdOfsampleFolder_2b_3b\"\n      ],\n      [\n        \"folderIdOfsampleFolder1\",\n        \"folderIdOfsampleFolder_2b\",\n        \"folderIdOfsampleFolder_2b_3b\",\n        \"folderIdOfsampleFolder_2b_3b_4a\"\n      ]\n    ],\n    \"names\": [\n      \"sampleFolder1\",\n      \"sampleFolder_2a\",\n      \"sampleFolder_2b\",\n      \"sampleFolder_2a_3a\",\n      \"sampleFolder_2b_3a\",\n      \"sampleFolder_2b_3b\",\n      \"sampleFolder_2b_3b_4a\"\n    ],\n    \"folders\": [\n      \"folderIdOfsampleFolder1\",\n      \"folderIdOfsampleFolder_2a\",\n      \"folderIdOfsampleFolder_2b\",\n      \"folderIdOfsampleFolder_2a_3a\",\n      \"folderIdOfsampleFolder_2b_3a\",\n      \"folderIdOfsampleFolder_2b_3b\",\n      \"folderIdOfsampleFolder_2b_3b_4a\"\n    ]\n  },\n  \"fileList\": [\n    {\n      \"folderTree\": [\"folderIdOfsampleFolder1\"],\n      \"files\": [\n        {\n          \"name\": \"Spreadsheet1\",\n          \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n        }\n      ]\n    },\n    {\n      \"folderTree\": [\"folderIdOfsampleFolder1\", \"folderIdOfsampleFolder_2a\"],\n      \"files\": [\n        {\n          \"name\": \"Spreadsheet2\",\n          \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n        }\n      ]\n    },\n    {\n      \"folderTree\": [\"folderIdOfsampleFolder1\", \"folderIdOfsampleFolder_2b\"],\n      \"files\": [\n        {\n          \"name\": \"Spreadsheet4\",\n          \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n        }\n      ]\n    },\n    {\n      \"folderTree\": [\n        \"folderIdOfsampleFolder1\",\n        \"folderIdOfsampleFolder_2a\",\n        \"folderIdOfsampleFolder_2a_3a\"\n      ],\n      \"files\": null\n    },\n    {\n      \"folderTree\": [\n        \"folderIdOfsampleFolder1\",\n        \"folderIdOfsampleFolder_2b\",\n        \"folderIdOfsampleFolder_2b_3a\"\n      ],\n      \"files\": [\n        {\n          \"name\": \"Spreadsheet3\",\n          \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n        }\n      ]\n    },\n    {\n      \"folderTree\": [\n        \"folderIdOfsampleFolder1\",\n        \"folderIdOfsampleFolder_2b\",\n        \"folderIdOfsampleFolder_2b_3b\"\n      ],\n      \"files\": null\n    },\n    {\n      \"folderTree\": [\n        \"folderIdOfsampleFolder1\",\n        \"folderIdOfsampleFolder_2b\",\n        \"folderIdOfsampleFolder_2b_3b\",\n        \"folderIdOfsampleFolder_2b_3b_4a\"\n      ],\n      \"files\": [\n        {\n          \"name\": \"Document1\",\n          \"mimeType\": \"application/vnd.google-apps.document\"\n        },\n        {\n          \"name\": \"image1.png\",\n          \"mimeType\": \"image/png\"\n        },\n        {\n          \"name\": \"Slides1\",\n          \"mimeType\": \"application/vnd.google-apps.presentation\"\n        },\n        {\n          \"name\": \"Spreadsheet5\",\n          \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n        },\n        {\n          \"name\": \"StandaloneProject1\",\n          \"mimeType\": \"application/vnd.google-apps.script\"\n        },\n        {\n          \"name\": \"Test1.txt\",\n          \"mimeType\": \"text/plain\"\n        }\n      ]\n    }\n  ],\n  \"totalNumberOfFiles\": 10,\n  \"totalNumberOfFolders\": 7\n}\n```\n\n# For other languages\n\nAs the libraries \"GetFileList\" for other languages, there are following libraries.\n\n- Golang: [https://github.com/tanaikech/go-getfilelist](https://github.com/tanaikech/go-getfilelist)\n- Google Apps Script: [https://github.com/tanaikech/FilesApp](https://github.com/tanaikech/FilesApp)\n- Javascript: [https://github.com/tanaikech/GetFileList_js](https://github.com/tanaikech/GetFileList_js)\n- Node.js: [https://github.com/tanaikech/node-getfilelist](https://github.com/tanaikech/node-getfilelist)\n- Python: [https://github.com/tanaikech/getfilelistpy](https://github.com/tanaikech/getfilelistpy)\n\n---\n\n\u003ca name=\"licence\"\u003e\u003c/a\u003e\n\n# Licence\n\n[MIT](LICENCE)\n\n\u003ca name=\"author\"\u003e\u003c/a\u003e\n\n# Author\n\n[Tanaike](https://tanaikech.github.io/about/)\n\nIf you have any questions and commissions for me, feel free to tell me.\n\n\u003ca name=\"updatehistory\"\u003e\u003c/a\u003e\n\n# Update History\n\n- v1.0.0 (November 14, 2018)\n\n  1. Initial release.\n\n- v1.0.3 (November 16, 2018)\n\n  1. Modified a bug.\n\n- v1.0.4 (May 14, 2020)\n\n  1. Shared drive got to be able to be used. The file list can be retrieved from both your Google Drive and the shared drive.\n\n     - For example, when the folder ID in the shared Drive is used `id` of `resource`, you can retrieve the file list from the folder in the shared Drive.\n\n- v1.0.5 (June 1, 2020)\n\n  1. When the file is retrieved from the shared drive, the parameter was not completed. This bug was removed.\n\n[TOP](#top)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanaikech%2Fnode-getfilelist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanaikech%2Fnode-getfilelist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanaikech%2Fnode-getfilelist/lists"}