std-filebase


Synopsis

(std-filebase <fname>)

Description

std-filebase extracts the directory and the base filename from a partial or full pathname specifier, removing the extension.

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

Examples

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

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