{"id":1328,"date":"2019-05-17T15:20:44","date_gmt":"2019-05-17T08:50:44","guid":{"rendered":"http:\/\/khub.phandeeyar.org\/docs\/google-toolkit\/how-to-copy-folders-and-list-file-names-in-google-drive\/"},"modified":"2019-06-25T12:32:57","modified_gmt":"2019-06-25T06:02:57","slug":"how-to-copy-folders-and-list-file-names-in-google-drive","status":"publish","type":"docs","link":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/","title":{"rendered":"How to Copy Folders and List file names in Google Drive"},"content":{"rendered":"\n<p>Getting File Names From a Google Drive Folder.<br>There are a lot of tools which can list the file name in a folder. However, in Google Drive, there is not a plugin so far. But, a script is available to extract file names from the folder . I would like to share this tip to my team.I found that tip from the following website. So, feel free to check that link.<\/p>\n\n\n\n<p><a href=\"http:\/\/www.acrosswalls.org\/ortext-datalinks\/list-google-drive-folder-file-names-urls\/\">http:\/\/www.acrosswalls.org\/ortext-datalinks\/list-google-drive-folder-file-names-urls\/<\/a><\/p>\n\n\n\n<ol><li>Create a blanksheet<\/li><li>Go to Tools\/Script editor<\/li><li>In the scripteditor, past the following code<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ replace your-folder below with the folder for which you want a listing\nfunction listFolderContents() {\n  var foldername = 'your-folder';\n  var folderlisting = 'listing of folder ' + foldername;\n  \n  var folders = DriveApp.getFoldersByName(foldername)\n  var folder = folders.next();\n  var contents = folder.getFiles();\n  \n  var ss = SpreadsheetApp.create(folderlisting);\n  var sheet = ss.getActiveSheet();\n  sheet.appendRow( ['name', 'link'] );\n  \n  var file;\n  var name;\n  var link;\n  var row;\n  while(contents.hasNext()) {\n\tfile = contents.next();\n\tname = file.getName();\n\tlink = file.getUrl();\n\tsheet.appendRow( [name, link] );\t \n  }  \n};<\/code><\/pre>\n\n\n\n<ol><li>You might need to change the \u2018your-folder\u2019 name with the name of your folder.<\/li><li>Note that the folder should be in your own drive. <\/li><li>If you click save and run , it will ask permission, just allow it.<\/li><li>After that , you will see a new spreadsheet with \u2018 list of files in your folder name\u2019 in My Drive .<\/li><li>Enjoy.<\/li><\/ol>\n\n\n\n<p>Copying a share folder into your \u2018My Drive\u2019<br><\/p>\n\n\n\n<ol><li>You can copy a file which is shared with you.<\/li><li>You can not copy the whole folder.<\/li><li>There is an addon which can solve this problem.<\/li><li>The name is Copy Folder.check out the link<\/li><\/ol>\n\n\n\n<p><a href=\"https:\/\/chrome.google.com\/webstore\/detail\/copy-folder\/kfbicpdhiofpicipfggljdhjokjblnhl?hl=en\">https:\/\/chrome.google.com\/webstore\/detail\/copy-folder\/kfbicpdhiofpicipfggljdhjokjblnhl?hl=en<\/a><\/p>\n\n\n\n<ol><li>When you run it, it will ask you to choose a folder you \u2018d like to copy.<\/li><li>My suggestion is to open that folder before you run the addon.<\/li><li>That is because you will face trouble to find the exact folder from a lot of folders in your drive.<\/li><li>So if you click sort button and (Sort last opened by me ), it will make alot easier to navigate. <\/li><li>Then, you will see a newly copied folder in MyDrive.<\/li><li>ENJOY!!!<\/li><\/ol>\n\n\n\n<p>Nyein Chan Ko Ko<\/p>\n<div class=\"fb-background-color\">\n\t\t\t  <div \n\t\t\t  \tclass = \"fb-comments\" \n\t\t\t  \tdata-href = \"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/\"\n\t\t\t  \tdata-numposts = \"10\"\n\t\t\t  \tdata-lazy = \"true\"\n\t\t\t\tdata-colorscheme = \"light\"\n\t\t\t\tdata-order-by = \"social\"\n\t\t\t\tdata-mobile=true>\n\t\t\t  <\/div><\/div>\n\t\t  <style>\n\t\t    .fb-background-color {\n\t\t\t\tbackground:  !important;\n\t\t\t}\n\t\t\t.fb_iframe_widget_fluid_desktop iframe {\n\t\t\t    width: 100% !important;\n\t\t\t}\n\t\t  <\/style>\n\t\t  ","protected":false},"featured_media":0,"parent":1983,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Copy Folders and List file names in Google Drive -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Copy Folders and List file names in Google Drive -\" \/>\n<meta property=\"og:description\" content=\"Getting File Names From a Google Drive Folder.There are a lot of tools which can list the file name in a folder. However, in Google Drive, there is not a plugin so far. But, a script is available to extract file names from the folder . I would like to share this tip to my [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/phandeeyar\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-25T06:02:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/drnyeinchan.com\/khub\/wp-content\/uploads\/2019\/05\/IMG_20190516_171126-01.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@phandeeyar\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/drnyeinchan.com\/khub\/#organization\",\"name\":\"Phandeeyar\",\"url\":\"https:\/\/drnyeinchan.com\/khub\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/phandeeyar\/\",\"https:\/\/www.facebook.com\/phandeeyar\",\"https:\/\/twitter.com\/phandeeyar\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/drnyeinchan.com\/khub\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/drnyeinchan.com\/khub\/wp-content\/uploads\/2019\/05\/21586512_1605500346167861_245298389276563305_o.png\",\"contentUrl\":\"https:\/\/drnyeinchan.com\/khub\/wp-content\/uploads\/2019\/05\/21586512_1605500346167861_245298389276563305_o.png\",\"width\":1200,\"height\":1200,\"caption\":\"Phandeeyar\"},\"image\":{\"@id\":\"https:\/\/drnyeinchan.com\/khub\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/drnyeinchan.com\/khub\/#website\",\"url\":\"https:\/\/drnyeinchan.com\/khub\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/drnyeinchan.com\/khub\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/drnyeinchan.com\/khub\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/#webpage\",\"url\":\"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/\",\"name\":\"How to Copy Folders and List file names in Google Drive -\",\"isPartOf\":{\"@id\":\"https:\/\/drnyeinchan.com\/khub\/#website\"},\"datePublished\":\"2019-05-17T08:50:44+00:00\",\"dateModified\":\"2019-06-25T06:02:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/drnyeinchan.com\/khub\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Toolkit\",\"item\":\"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Pro Tips\",\"item\":\"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Copy Folders and List file names in Google Drive\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Copy Folders and List file names in Google Drive -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/","og_locale":"en_US","og_type":"article","og_title":"How to Copy Folders and List file names in Google Drive -","og_description":"Getting File Names From a Google Drive Folder.There are a lot of tools which can list the file name in a folder. However, in Google Drive, there is not a plugin so far. But, a script is available to extract file names from the folder . I would like to share this tip to my [&hellip;]","og_url":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/","article_publisher":"https:\/\/www.facebook.com\/phandeeyar","article_modified_time":"2019-06-25T06:02:57+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/drnyeinchan.com\/khub\/wp-content\/uploads\/2019\/05\/IMG_20190516_171126-01.jpeg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@phandeeyar","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/drnyeinchan.com\/khub\/#organization","name":"Phandeeyar","url":"https:\/\/drnyeinchan.com\/khub\/","sameAs":["https:\/\/www.instagram.com\/phandeeyar\/","https:\/\/www.facebook.com\/phandeeyar","https:\/\/twitter.com\/phandeeyar"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/drnyeinchan.com\/khub\/#\/schema\/logo\/image\/","url":"https:\/\/drnyeinchan.com\/khub\/wp-content\/uploads\/2019\/05\/21586512_1605500346167861_245298389276563305_o.png","contentUrl":"https:\/\/drnyeinchan.com\/khub\/wp-content\/uploads\/2019\/05\/21586512_1605500346167861_245298389276563305_o.png","width":1200,"height":1200,"caption":"Phandeeyar"},"image":{"@id":"https:\/\/drnyeinchan.com\/khub\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/drnyeinchan.com\/khub\/#website","url":"https:\/\/drnyeinchan.com\/khub\/","name":"","description":"","publisher":{"@id":"https:\/\/drnyeinchan.com\/khub\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/drnyeinchan.com\/khub\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/#webpage","url":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/","name":"How to Copy Folders and List file names in Google Drive -","isPartOf":{"@id":"https:\/\/drnyeinchan.com\/khub\/#website"},"datePublished":"2019-05-17T08:50:44+00:00","dateModified":"2019-06-25T06:02:57+00:00","breadcrumb":{"@id":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/how-to-copy-folders-and-list-file-names-in-google-drive\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/drnyeinchan.com\/khub\/"},{"@type":"ListItem","position":2,"name":"Google Toolkit","item":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/"},{"@type":"ListItem","position":3,"name":"Pro Tips","item":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/"},{"@type":"ListItem","position":4,"name":"How to Copy Folders and List file names in Google Drive"}]}]}},"jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/drnyeinchan.com\/khub\/wp-json\/wp\/v2\/docs\/1328"}],"collection":[{"href":"https:\/\/drnyeinchan.com\/khub\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/drnyeinchan.com\/khub\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/drnyeinchan.com\/khub\/wp-json\/wp\/v2\/comments?post=1328"}],"version-history":[{"count":0,"href":"https:\/\/drnyeinchan.com\/khub\/wp-json\/wp\/v2\/docs\/1328\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/drnyeinchan.com\/khub\/wp-json\/wp\/v2\/docs\/1983"}],"prev":[{"title":"Google Drive \u1019\u103e \u1010\u102d\u102f\u1000\u103a\u101b\u102d\u102f\u1000\u103a Link \u1019\u103b\u102c\u1038\u1011\u102f\u1010\u103a\u1001\u103c\u1004\u103a\u1038","link":"https:\/\/drnyeinchan.com\/khub\/docs\/google-toolkit\/pro-tips\/google-drive-%e1%80%99%e1%80%be-%e1%80%90%e1%80%ad%e1%80%af%e1%80%80%e1%80%ba%e1%80%9b%e1%80%ad%e1%80%af%e1%80%80%e1%80%ba-link-%e1%80%99%e1%80%bb%e1%80%ac%e1%80%b8%e1%80%91%e1%80%af%e1%80%90%e1%80%ba\/","href":"https:\/\/drnyeinchan.com\/khub\/wp-json\/wp\/v2\/docs\/1330"}],"wp:attachment":[{"href":"https:\/\/drnyeinchan.com\/khub\/wp-json\/wp\/v2\/media?parent=1328"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/drnyeinchan.com\/khub\/wp-json\/wp\/v2\/doc_tag?post=1328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}