std-filename


Synopsis

(std-filename <fname>)

Description

std-filename extracts the filename and file extension from a partial or full pathname specifier, removing the path specifier.

There is no case conversion done. It's implemented as strcat of the second and third element of std-filename-split, so for ambiguities see there.

(std-filename "d:/acad/test")  => "test"
(std-filename "d:/acad/test.lsp")  => "test.lsp"

Arguments

fname: a string. A partial or fully qualified filename specifier.

Return Value

A string.

Side Effects

See std-fpslash.

Module

(std-require 'STDFILE)

Defined in STDFILE