automaton-build.os.filename

Manipulate file names (is not influenced at all by your local configuration).

absolutize

(absolutize relative-path)

Returns the absolute path of relative-path (file or dir).

change-extension

(change-extension file-name new-extension)

Turns filename extension into new-extension.

create-dir-path

(create-dir-path & dirs)

Creates a path with the list of parameters. Removes the empty strings, add needed separators, including the trailing ones

create-file-path

(create-file-path & dirs)

Creates a path for which each element of dirs is a subdirectory.

directory-separator

Symbol to separate directories. Is usually / on linux based OS And \ on windows based ones

extract-path

(extract-path filename)

Extract the directory path to the filename.

filename

(filename full-path)

Returns the filename of a path.

is-absolute?

(is-absolute? path)

Returns true if path is an absolute directory.

match-extension?

(match-extension? filename & extensions)

Returns true if the filename match the at least one of the extensions.

parent

(parent path)

Returns the parent of path.

relativize

(relativize path root-dir)

Turn the path into a relative directory starting from root-dir

remove-trailing-separator

(remove-trailing-separator path)

If exists, remove the trailing separator in a path, remove unwanted spaces either