myFile.parent in Photoshop DOM

The Folder containing this File.
This property is read-only.

Property Type
Folder
If this File is at the root folder of a volume, the value is null.