GetDirectoryFromPath()
Extracts a directory from an absolute path.
Returns the absolute path, without the filename.
GetDirectoryFromPath( path=string );
Returns: String
| Argument | Description |
|---|---|
|
path
string,
required
|
edit
file path |
Examples
editsome_directory = getDirectoryFromPath("path");
dump(some_directory);
See also
- File handling
- GetCurrentTemplatePath()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)