\Hazaar\File
Dir
Summary
Methods Properties Constants
get
No constants
Properties
$allow_hidden
$allow_hidden
$backend
$backend
$files
$files
$path
$path
Methods
__construct()
__construct($path, $backend = null)

Parameters

$path

No description

$backend

No description

allow_hidden()
allow_hidden($toggle = true)

Parameters

$toggle

No description

close()
close()
copyTo()
copyTo($target, $recursive = false, $transport_callback = null)

Parameters

$target

No description

$recursive

No description

$transport_callback

No description

create()
create($recursive = false)

Parameters

$recursive

No description

delete()
delete($recursive = false)

Parameters

$recursive

No description

exists()
exists()
find()
find($pattern, $show_hidden = false, $case_sensitive = true, $start = null) : array
Find files in the current path optionally recursing into sub directories.

Parameters

$patternstring

The pattern to match against. This can be either a wildcard string, such as “*.txt” or a regex pattern. Regex is detected if the string is longer than a single character and first character is the same as the last.

$show_hidden

No description

$case_sensitive\Hazaar\File\bool

If TRUE character case will be honoured.

$startstring

String path to start at if the search should start at a sub directory.

Returns

array

Returns an array of matches files.

fixPath()
fixPath($path, $file = null)

Parameters

$path

No description

$file

No description

get()
get($child)

Parameters

$child

No description

is_readable()
is_readable()
is_writable()
is_writable()
path()
path($suffix = null)

Parameters

$suffix

No description

read()
read($regex_filter = null)

Parameters

$regex_filter

No description

realpath()
realpath($suffix = null)

Parameters

$suffix

No description

rewind()
rewind()