Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 8 Next »

Description

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.

Functional area

System

Command syntax

Syntax

getFileLocation "filePath"

Arguments

NameTypeRequiredComments
filePathstringyesFull path to the file to get the location for. Be sure to use forward slashes instead of back-slashes.

Flags

None

Return value

string

Returns the directory portion of a file path, including the ending forward slash.

Examples

// Get the location of a file path.
string $location;
string $path = "c:/temp/take25.c3d";
 
// Should be "c:/temp/"
$location = `getFileLocation $path`;
print $location;

Additional information

Related commands

  • No labels