user: password:
huginn - programming language with no quirks, so simple every child can master it.
Fork me on GitHub
git clone https://codestation.org/repo/huginn.git
git clone https://github.com/AmokHuginnsson/huginn.git
git clone https://bitbucket.org/huginn/huginn.git
The FileSystem package provides interface to various file system queries and operations.
  • FileSystemException( message ) - create instance of FileSystemException with given message
  • basename( path ) - strip directory from filename for given path
  • chmod( path, mode ) - change file mode bits for file path to new mode mode
  • create_directory( path ) - create a new directory with given path
  • current_working_directory() - get current working directory path
  • dirname( path ) - strip last component from file name for given path
  • disk_usage( mountPoint ) - get disk usage statistics for the file system mounted at mountPoint
  • exists( path ) - tell if given path exists, return false for broken links
  • glob( pattern ) - find pathnames matching a pattern
  • list_directory( path ) - list content of the directory given by path
  • open( path, mode ) - open file under given path in the attached file system, using specified (i/o) mode
  • readlink( path ) - get resolved symbolic links or canonical file name for given path
  • remove( path ) - remove file with given path from attached file system
  • remove_directory( path ) - recursively remove a directory at given path
  • rename( oldPath, newPath ) - rename or move file from oldPath to newPath in attached file system
  • set_working_directory( path ) - change working directory to given path
  • stat( path ) - get metadata information for file given by path
  • update_times( path, modTime, accessTime ) - update modification (modTime) and access (accessTime) times of the file given by path
FileSystem.OPEN_MODE - set of possible modes used for opening the files.
  • APPEND - Open file for appending, writing begins at end of file.
  • EDIT - Open file for reading and writing, writing begins at beginning of file and the file is not truncated.
  • READ - Open file for reading only.
  • WRITE - Open file for writing while truncating existing content.
The FileSystem.DirectoryScan class represents ongoing directory scan operation.
The FileSystem.FileStat class allows obtaining metadata information about various file system objects.
  • accessed() - get file's last access time
  • group() - get a group name of the file owner
  • id() - get file's identification number
  • mode() - get file's access permissions
  • modified() - get file's data modification time
  • name() - get the name of the file
  • size() - get file size in bytes
  • status_changed() - get file's metadata modification time
  • type() - get the type of the file
  • user() - get an user name of the file owner
The FileSystemException exception type for FileSystem package.
FileSystem.FILE_TYPE - The FILE\_TYPE is set of possible file types.
  • BLOCK_DEVICE - A block device.
  • CHARACTER_DEVICE - A character device.
  • DIRECTORY - A directory.
  • FIFO - A FIFO.
  • REGULAR - A regular file.
  • SOCKET - A UNIX socket file.
  • SYMBOLIC_LINK - A symbolic link