Module "Directory.curry"

Library for accessing the directory structure of the underlying operating system.

Author: Michael Hanus

Version: March 2008


 Exported names:

Functions:
createDirectory | doesDirectoryExist | doesFileExist | fileSize | getCurrentDirectory | getDirectoryContents | getModificationTime | removeDirectory | removeFile | renameDirectory | renameFile | setCurrentDirectory


 Summary of exported functions:

doesFileExist  :: String -> IO Bool  deterministic 
          Returns true if the argument is the name of an existing file.
doesDirectoryExist  :: String -> IO Bool  deterministic 
          Returns true if the argument is the name of an existing directory.
fileSize  :: String -> IO Int  deterministic 
          Returns the size of the file.
getModificationTime  :: String -> IO ClockTime  deterministic 
          Returns the modification time of the file.
getCurrentDirectory  :: IO String  deterministic 
          Returns the current working directory.
setCurrentDirectory  :: String -> IO ()  deterministic 
          Sets the current working directory.
getDirectoryContents  :: String -> IO [String]  deterministic 
          Returns the list of all entries in a directory.
createDirectory  :: String -> IO ()  deterministic 
          Creates a new directory with the given name.
removeFile  :: String -> IO ()  deterministic 
          Deletes a file from the file system.
removeDirectory  :: String -> IO ()  deterministic 
          Deletes a directory from the file system.
renameFile  :: String -> String -> IO ()  deterministic 
          Renames a file.
renameDirectory  :: String -> String -> IO ()  deterministic 
          Renames a directory.

 Imported modules:

Prelude
Time

 Exported datatypes:


 Exported functions:

doesFileExist :: String -> IO Bool  deterministic 

Returns true if the argument is the name of an existing file.


doesDirectoryExist :: String -> IO Bool  deterministic 

Returns true if the argument is the name of an existing directory.


fileSize :: String -> IO Int  deterministic 

Returns the size of the file.


getModificationTime :: String -> IO ClockTime  deterministic 

Returns the modification time of the file.


getCurrentDirectory :: IO String  deterministic 

Returns the current working directory.

Further infos:
  • externally defined

setCurrentDirectory :: String -> IO ()  deterministic 

Sets the current working directory.


getDirectoryContents :: String -> IO [String]  deterministic 

Returns the list of all entries in a directory.


createDirectory :: String -> IO ()  deterministic 

Creates a new directory with the given name.


removeFile :: String -> IO ()  deterministic 

Deletes a file from the file system.


removeDirectory :: String -> IO ()  deterministic 

Deletes a directory from the file system.


renameFile :: String -> String -> IO ()  deterministic 

Renames a file.


renameDirectory :: String -> String -> IO ()  deterministic 

Renames a directory.



Generated by CurryDoc (Version 0.4.1 of June 7, 2007) at Nov 9 18:02:21 2009