This function returns the parent directory path from a given file path
FsGetDirectoryName([Path])
Where:
Path is the path to return the parent directory from
Rule | Meaning |
---|---|
FsGetDirectoryName("C:\DriveWorks\Parent Directory\Child Directory") | This will return the path C:\DriveWorks\Parent Directory |
FsGetDirectoryName("C:\DriveWorks\Parent Directory\Child Directory\MyFile.txt") | This will return the path C:\DriveWorks\Parent Directory\Child Directory |