Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

parent folder of file extendscript

// 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
 
PREVIOUS NEXT
Tagged: #parent #folder #file #extendscript
ADD COMMENT
Topic
Name
6+7 =