Methods

Copy directory

copy(string $new_path) : bool

Parameters

$new_path

string

path to parent directory, must be valid

Returns

bool

Delete directory

delete(bool $recursive, bool $delete_top) : bool

Parameters

$recursive

bool

$delete_top

bool

Returns

bool

forge()

forge($path, array $config, \Fuel\Core\File_Area $area, $content) 

Parameters

$path

$config

$area

$content

Get the directory permissions.

get_permissions() : string

Returns

stringfile permissions

Get the size.

get_size() 

This method is unavailable on this implement, that will surely cause exception.

Exceptions

\BadMethodCallException

Get directory's the created or modified timestamp.

get_time(string $type) : int

Parameters

$type

string

modified or created

Returns

intUnix Timestamp

Get the url.

get_url() 

This method is unavailable on this implement, that will surely cause exception.

Exceptions

\BadMethodCallException

Move directory to new parent directory

move(string $new_path) : bool

Parameters

$new_path

string

path to new parent directory, must be valid

Returns

bool

Read directory

read(int $depth, array $filters) : array

Parameters

$depth

int

whether or not to read recursive

$filters

array

array of partial regexps or non-array for default

Returns

array

Rename file, only within current directory

rename(string $new_name) : bool

Parameters

$new_name

string

new directory name

Returns

bool

Update contents

update() 

This method is unavailable on this implement, that will surely cause exception.

Exceptions

\BadMethodCallException

__construct()

__construct($path, array $config, \Fuel\Core\File_Area $area, $content) 

Parameters

$path

$config

$area

$content

 Properties

 

$area

$area : \Fuel\Core\File_Area

 

<p>listing of files and directories within this directory</p>

$content : array

 

<p>path to the file</p>

$path : string