Haxe API Documentation
Back | Index
class sys.FileSystem
Available in neko, php, cpp
This class allows you to get informations about the files and directories.
static function createDirectory(path : String) : Void
Create the given directory. Not recursive : the parent directory must exists.
static function deleteDirectory(path : String) : Void
Delete a given directory.
static function deleteFile(path : String) : Void
Delete a given file.
static function exists(path : String) : Bool
Tells if the given file or directory exists.
static function fullPath(relpath : String) : String
Returns the full path for the given path which is relative to the current working directory.
static function isDirectory(path : String) : Bool
Tells if the given path is a directory. Throw an exception if it does not exists or is not accesible.
static function readDirectory(path : String) : Array<String>
Read all the files/directories stored into the given directory.
static function rename(path : String, newpath : String) : Void
Rename the corresponding file or directory, allow to move it accross directories as well.
static function stat(path : String) : FileStat
Returns informations for the given file/directory.
Back | Index