How do I locate the path of the current folder? I just want to be able to get the path of the folder so that I can manipulate the files in the folder without typing the path
For a Spreadsheet I found this to work:
thisFileId = SpreadsheetApp.getActive().getId(); var thisFile = DriveApp.getFileById(thisFileId); var parentFolder = thisFile.getParents()[0].getName();