|
System.Posix.Directory | Portability | non-portable (requires POSIX) | Stability | provisional | Maintainer | libraries@haskell.org |
|
|
|
|
|
Description |
POSIX directory support
|
|
Synopsis |
|
|
|
|
Creating and removing directories
|
|
|
createDirectory dir mode calls mkdir to
create a new directory, dir, with permissions based on
mode.
|
|
|
|
Reading directories
|
|
|
|
|
openDirStream dir calls opendir to obtain a
directory stream for dir.
|
|
|
readDirStream dp calls readdir to obtain the
next directory entry (struct dirent) for the open directory
stream dp, and returns the d_name member of that
structure.
|
|
|
rewindDirStream dp calls rewinddir to reposition
the directory stream dp at the beginning of the directory.
|
|
|
closeDirStream dp calls closedir to close
the directory stream dp.
|
|
|
|
|
|
|
|
The working dirctory
|
|
|
getWorkingDirectory calls getcwd to obtain the name
of the current working directory.
|
|
|
changeWorkingDirectory dir calls chdir to change
the current working directory to dir.
|
|
|
|
Produced by Haddock version 2.4.2 |