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. 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. 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 #4267, modified 2008-09-16 20:29:31 by ianxm