githubEdit

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 Examplearrow-up-right

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

Result: C:\temp\

Additional Examples

Run Examplearrow-up-right

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

Last updated

Was this helpful?