Documentation
Directory
The directory helper contains methods that assist in working with directories.
Methods
create(string $dir, [integer $chmod = 0775])
Creates a directory.
Dir::create('folder1');
exists(string $dir)
Checks if this directory exists.
if (Dir::exists('folder1')) { // Do something... }
checkPerm(string $dir)
Check dir permission.
echo Dir::checkPerm('folder1');
delete(string $dir)
Delete directory.
Dir::delete('folder1');
scan(string $dir)
Get list of directories.
$dirs = Dir::scan('folders');
writable($path)
Check if a directory is writable.
if (Dir::writable('folder1')) { // Do something... }