// Get parent folder of file in extendscript var pathToFile = "/path/to/file.zip" var fileObj = new File(pathToFile); var parent = fileObj.parent.fsName; // >> /path/to