std-fpslash


Synopsis

(std-fpslash <path>)

Description

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.

Example

(std-fpslash "d:/acad")  => "d:\\acad\\"     ; on DOS/Windows

Arguments

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

Return Value

A string.

Side Effects

At the first call (getenv) might get called. It uses an internal global variable *SLASH-CHAR*.

Module

(std-require 'STDFILE)

Defined in STDFILE