2016-08-01 94 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)方法,它只能用于从当前文件夹中删除给定的文件夹。

我希望有帮助。

相关问题