0

I want to find files that includes some keyword and copy it to other folder.

So I need two features.

  1. Find files by keyword and list it at "file" type value.

  2. copy the file to different directory.

But Google drive supports same folder name so I don't know how to targeting folder by name. And I want copy the file only if there is not file has same name. Because I'll run this script every 5 minutes and if I don't set about that, there are many same name files to target directory.

How can I do this?

1 Answers1

0

AFAIK, the only supported methods that you can use to get files in Class DriveApp are:

Then, to make a copy to other folder, you can use the following methods that are given in Class File

Lastly, the suggested solutions given in this SO post might also help.

Community
  • 1
  • 1
Teyam
  • 7,686
  • 3
  • 15
  • 22