GetDirectoryFromPath

Retrieves the directory parent of a path

Method Signature

GetDirectoryFromPath(path=[string])

Arguments

Argument
Type
Required
Description
Default

path

string

true

The path to extract the parent directory from

Examples

Basic Example

Run Example

getDirectoryFromPath( "C:\temp\file.txt" );

Result: C:\temp\

Additional Examples

Run Example

some_directory = getDirectoryFromPath( "path" );
dump( some_directory );

Last updated

Was this helpful?