Retrieves the directory portion of a file path, including the ending forward slash.
For example, for "c:/temp/take25.c3d"
, "c:/temp/" will be returned.
System
getFileLocation "filePath" |
Name | Type | Required | Comments |
---|---|---|---|
filePath | string | yes | Full path to the file to get the location for. Be sure to use forward slashes instead of back-slashes. |
None
string
Returns the directory portion of a file path, including the ending forward slash.
// Get the location of a file path. string $location; string $path = "c:/temp/take25.c3d"; // Should be "c:/temp/" $location = `getFileLocation $path`; print $location; |