Home Search

DriveWorks Pro 21
FsGetDirectoryName

Send Feedback

FsGetDirectoryName

This function returns the parent directory path from a given file path

Syntax

FsGetDirectoryName([Path])

Where:

Path is the path to return the parent directory from

Examples

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