|
|
|
| Description |
| Operations on file names.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
|
|
| The extension includes the dot
|
|
|
| Change the extension of a filename
|
|
|
| Breaks up a path (possibly including a file) into a list of
drives/directories (with the file at the end).
|
|
|
| The moral inverse of splitPath.
|
|
|
Given a path (not including a file) dropDirectory n removes
the last n directories in the path (if any).
Precondition: n >= 0, and the path has to be absolute.
|
|
|
Removes duplicate file names from the list. Nonexisting files are
compared by name only. Two existing files are considered to be
equal if
- canonicalizePath returns the same canonical path for them,
- and they have the same modification time.
Nonexisting and existing files are not compared.
Note that in the case of existing files the returned file names
are canonicalised.
The modification time test for existing files is included since the
first method may not always give correct results. I would want to
check the files' sizes instead of their modification times, but
System.Directory does not contain a function for querying the
size of a file.
This function is of course prone to errors if files are changed
while it is running.
To summarise: There are no guarantees that this function gives
correct results. Do not use it for mission-critical code.
|
|
|
| Generates a character distinct from slash (it may be '.').
|
|
|
| Generates a possibly empty string of nameChars.
|
|
|
| Generates a non-empty string of nameChars.
|
|
|
| Generates a possibly empty path (without any drive).
|
|
|
| pathOfLength n generates a path which contains n + 1
slashes and starts and ends with a slash.
|
|
| Produced by Haddock version 2.4.2 |