pathname->os-path

Name

pathname->os-path -- Converts a pathname object to the corresponding string

Type: generic

Synopsis

pathname->os-path( pathname, string);

Arguments

pathname

A pathname object (an instance of <file-name> or <directory-name>)

Return Values

string

The string form of the pathname.

Description

This generic function is applied to a pathname to compute the native representation of the given path, suitable to passing to functions that actually operate on the file system, such as open-input-file and stat.

In unix, directory names are returned without a trailing slash.

Special root locations are expanded to their current value.