Skip to content

dos_subdir

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Returns a list of subdirectories found in the specified directory. This function is the only path-related function whose return values do not contain trailing double-backslashes (\).

Syntax

(dos_subdir [path [T]])

Parameters

path

A string containing an existing path. If not specified, the current directory is used.

T

Return the current directory and parent directory markers "." and "..". The default is not to return these markers.

Returns

A list of subdirectories if successful.

nil on error.

Example

(dos_subdir)
("Data Links" "Drv" "en-US" "Express" "Fonts" "Help" "Plot Styles" "Plotters" "Sample" "Support" "Template" "Textures" "UserDataCache" "WebDepot" "WebServices")

Clone this wiki locally