std-fpslash | ![]() |
std-fpslash ("Force Path Slash") is used to convert the different types of acceptable path delimiters to the platform specific one, with DOS and Windows the "//". It also adds the path delimiter to the end of the path. Supported platforms are Dos, Windows, Unix and OS/2.
For the Mac ":-slash" character I'm not sure yet. There the leading and trailing ":" have a completely different meaning.
The path does not need to exist actually.
(std-fpslash "d:/acad") => "d:\\acad\\" ; on DOS/Windows
path: a string. A partial or fully qualified filename specifier.
A string.
At the first call (getenv) might get called. It uses an internal global variable *SLASH-CHAR*.
(std-require 'STDFILE)
Defined in STDFILE