# Files

File system related functions

author | Lukas Korinek
package | Default

### Methods

## Normalizes a directory path

    normalizeDirectory(string $directory, integer $type = self::READABLE, boolean $create = false) : string

static

### Arguments

#### $directory

`string`

Directory to normalize

#### $type

`integer`

Requested usage type of the directory

#### $create

`boolean`

Should attempt to create the directory?

### Response

`string`

## Normalizes a file path

    normalizeFile(string $file, integer $type = self::READABLE) : string

static

### Arguments

#### $file

`string`

File to normalize

#### $type

`integer`

Requested usage type of the file

### Response

`string`

Normalized string

## Recursively removes a directory

    rrmdir(string $path)

static

### Arguments

#### $path

`string`

### Constants

## EXECUTABLE

    EXECUTABLE

## WRITEABLE

    WRITEABLE

## READABLE

    READABLE