Get the Full Path of a Google Drive Folder

With Apps Script, you can specify the full path of a Google Drive folder in your method using the \root\parent\child\grandchild notation. The script will return the destination folder matching your path name or if the path doesn’t exist, it will create the specified folders using the same structure starting with the Root folder.

This style is also handy when you are trying to create a file in a specific Drive folder but do not want the hassle of dealing with File or Folder IDs of the Drive App.

Leave a Reply