2016-08-01 76 views
0

誰知道如何在谷歌驅動器中使用谷歌腳本合併具有相同名稱的文件夾?使用谷歌腳本在谷歌驅動器中合併具有相同名稱的文件夾

步驟01:查找根文件夾中是否有重複的文件夾;

步驟02:如果是,選擇一個文件夾作爲主文件夾,然後將其他文件夾(同名)的所有文件移動到該主文件夾;

步驟03:刪除其他文件夾(同名)。

非常感謝提前。

Merge Folder with the same name under the same Folder

+1

歡迎來到計算器。看看[如何編寫一個很好的stackoverflow問題](http://stackoverflow.com/help/how-to-ask)向我們展示你嘗試每一步,什麼是失敗。 –

+0

如果您使用[tag:google-apps-script]執行許多任務,則不需要[tag:google-drive-sdk] –

回答

0

Class Folder,目前,沒有現有的方法來從一個文件夾在谷歌驅動器移動到其他文件。

據我所知,Seeing duplicate files after sync on desktop Drive version 1.14存在一個問題。但是,您可以按照給定的解決方法在論壇如下:

步驟01: How to Find duplicates files (by name and/or size) in a specific folder of my google drive

步驟02: How do I copy & move a file to a folder in Google Apps Script?

步驟03:您可以使用從Class FolderremoveFolder(child)方法,它只能用於從當前文件夾中刪除給定的文件夾。

我希望有幫助。

相關問題