|
System.Gnome.VFS.Directory | Portability | portable (depends on GHC) | Stability | alpha | Maintainer | gtk2hs-devel@lists.sourceforge.net |
|
|
|
|
|
Description |
Functions for creating, removing, and accessing directories and
their contents.
|
|
Synopsis |
|
|
|
|
Types
|
|
|
A handle to an open directory.
|
|
|
data DirectoryVisitOptions | Source |
|
Options controlling the way in which a directories are visited.
| Constructors | DirectoryVisitDefault | | DirectoryVisitSamefs | | DirectoryVisitLoopcheck | | DirectoryVisitIgnoreRecurseError | |
|
|
|
data DirectoryVisitResult | Source |
|
An enumerated value that must be returned from a
DirectoryVisitCallback. The directoryVisit and related
functions will perform the action specified.
| Constructors | DirectoryVisitStop | stop visiting files
| DirectoryVisitContinue | continue as normal
| DirectoryVisitRecurse | recursively visit the current entry
|
|
|
|
Directory Creation
|
|
|
:: TextURI | textURI - String representation of the URI of the directory to create
| -> [FilePermissions] | perm - FilePermissions for the newly created directory
| -> IO () | | Create textURI as a directory. Only succeeds if a file or
directory does not already exist at textURI.
|
|
|
|
:: URI | uri - URI of the directory to be created
| -> [FilePermissions] | perm - FilePermissions for the newly created directory
| -> IO () | | Create uri as a directory. Only succeeds if a file or
directory does not already exist at uri.
|
|
|
Directory Removal
|
|
|
:: TextURI | textURI - URI of the directory to be removed
| -> IO () | | Remove the directory at textURI. The object at textURI must be an empty directory.
|
|
|
|
:: URI | uri - URI of the directory to be removed
| -> IO () | | Remove the directory at uri. The object at uri must be an empty directory.
|
|
|
Directory Access
|
|
|
:: TextURI | textURI - String representation of the URI of the directory to open
| -> [FileInfoOptions] | fileInfoOptions - options for reading file information
| -> IO DirectoryHandle | handle to the opened directory
| Open directory textURI for reading. Returns a DirectoryHandle
which can be used to read directory entries one by one.
|
|
|
|
:: URI | uri - URI of the directory to open
| -> [FileInfoOptions] | fileInfoOptions - options for reading file information
| -> IO DirectoryHandle | handle to the opened directory
| Open directory textURI for reading. Returns a DirectoryHandle
which can be used to read directory entries one by one.
|
|
|
|
|
|
|
|
|
|
:: TextURI | textURI - String representation of the URI of the directory to load
| -> [FileInfoOptions] | options - options for reading file information
| -> IO [FileInfo] | the entries contined in the directory
| Create a list of FileInfo objects representing each entry in the
directory at textURI, using options options.
|
|
|
Directory Traversal
|
|
|
:: String | textURI - string representation of the URI of the directory to visit
| -> [FileInfoOptions] | infoOptions - options for reading file information
| -> [DirectoryVisitOptions] | visitOptions - options for visiting the directory
| -> DirectoryVisitCallback | callback - a function to be called for each entry
| -> IO () | | Visit each entry in a directory at a TextURI, calling a
DirectoryVisitCallback for each one.
|
|
|
|
:: URI | uri - the URI of the directory to visit
| -> [FileInfoOptions] | infoOptions - options for reading file information
| -> [DirectoryVisitOptions] | visitOptions - options for visiting the directory
| -> DirectoryVisitCallback | callback - a function to be called for each entry
| -> IO () | | Visit each entry in a directory at a URI, calling a
DirectoryVisitCallback for each one.
|
|
|
|
:: TextURI | textURI - string representation of the URI of the directory to visit
| -> [String] | files - the files contained in textURI to be visited
| -> [FileInfoOptions] | infoOptions - options for reading file information
| -> [DirectoryVisitOptions] | visitOptions - options for visiting the directory
| -> DirectoryVisitCallback | callback - a function to be called for each entry
| -> IO () | | Visit each file in a list contained with a directory at a
TextURI, calling a DirectoryVisitCallback for each one.
|
|
|
directoryVisitFilesAtURI | Source |
|
:: URI | uri - the URI of the directory to visit
| -> [String] | files - the files contained in textURI to be visited
| -> [FileInfoOptions] | infoOptions - options for reading file information
| -> [DirectoryVisitOptions] | visitOptions - options for visiting the directory
| -> DirectoryVisitCallback | callback - a function to be called for each entry
| -> IO () | | Visit each file in a list contained with a directory at a
URI, calling a DirectoryVisitCallback for each one.
|
|
|
Produced by Haddock version 2.6.0 |