filename
filename
Module
filename
Module summary
Filename manipulation functions.
Description
This module provides functions for analyzing and manipulating filenames. These functions are designed so that the Erlang code can work on many different platforms with different filename formats. With filename is meant all strings that can be used to denote a file. The filename can be a short relative name like foo.erl
, a long absolute name including a drive designator, a directory name like D:\usr/local\bin\erl/lib\tools\foo.erl
, or any variations in between.
In Windows, all functions return filenames with forward slashes only, even if the arguments contain backslashes. To normalize a filename by removing redundant directory separators, use join/1
.
The module supports raw filen