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.

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.