Directory Class extending Object

/ Responsible for directory related actions /

Class Methods

Constructs this Directory

function __construct() : void

Creates the directory with the given string and returns weather it was succesfull or not

function create(string filename) : boolean

Lists all files in the directory and returns them as a string array

function list(string path) : string[]

Deletes the directory with the specified filename. If the directory does not exist, is not empty or is a file or can't be deleted an IOException is thrown.
You require a FilePermission with write access to the directory you are trying to delete for this to succeed otherwise a PermissionException is thrown

function delete(string filename) : void