Function Entry: VL-FILENAME-DIRECTORY
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: VL-FILENAME-DIRECTORY
Name
vl-filename-directory
Class
Visual LISP Pathname Function
Syntax
(vl-filename-directory filename)
Arguments and Values
filename: pathname string
Description
Returns the directory path of a file after stripping the name and extension.
Return Values
String.
Autodesk documents that the empty string is returned when no directory component is present.
Side Effects
None.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [vl-filename-directory (AutoLISP)](https://help.autodesk.com/cloudhelp/2026/KOR/AutoCAD-LT-AutoLISP-Reference/files/GUID-AAB7ED2B-C119-4B30-A831-71A4D02757B0.htm)
Notes
- Autodesk documents that slashes and backslashes are both accepted as directory delimiters.
- Autodesk documents that the function does not check whether the specified file exists.