FileSystem
class neko.FileSystemAvailable in nekoContains a collection of static functions for working with files and directories.
static function createDirectory( path : String ) : VoidCreate a directory at the given path. Fails if the new directory's parent doesn't exist. Also fails if you have trailing path separator (such as slash or back-slash).
static function deleteDirectory( path : String ) : VoidDelete the directory at the given path. Fails if the directory is not empty.
static function deleteFile( path : String ) : VoidDelete the file at the given path.
static function exists( path : String ) : BoolReturns true if a file or directory exists at the given path.
static function fullPath( relpath : String ) : StringReturns the absolute path for the given relative path.
static function isDirectory( path : String ) : BoolReturns true if the given path points to a directory.
static function kind( path : String ) : FileKindTells if the given path points to a file, directory, or other. Throws an exception if the path does not exist.
static function readDirectory( path : String ) : Array<String>Gets the list of files and subdirectories in the given directory.
static function rename( path : String, newpath : String ) : VoidRenames a file or directory.
static function stat( path : String ) : FileStatGets file info such as its size, owner, timestamps, etc.
version #7190, modified 2009-10-27 18:14:18 by bdasnois