Filesystem
class Filesystem (View source)
Methods
Changes mode for files/directories.
Changes group of file.
Copies file.
Removes file.
Removes files.
Returns pathnames matching a pattern (for files only & hidden files).
Create new directory.
Create new directories.
Removes a directory.
Removes a directories.
Moves file to different path (rename).
No description
No description
Create temporary file.
Create temporary directory.
Checks if directory exists;.
Checks if file exists;.
Details
at line 15
final static bool
chmod(string $path, int $mode, bool $recursive = false)
Changes mode for files/directories.
at line 36
final static bool
chgrp(string $file, int $group, bool $recursive = false)
Changes group of file.
at line 55
final static bool
copy(string $srcfile, string $destfile)
Copies file.
at line 72
final static bool
delete(string $file, bool $strict = true)
Removes file.
at line 93
final static bool
deleteFiles(array $files, bool $strict = true)
Removes files.
at line 109
final static mixed
glob(string $directory, mixed $pattern = null)
Returns pathnames matching a pattern (for files only & hidden files).
at line 130
final static bool
mkdir(mixed $directory, int $mode = 0777, bool $recursive = false, bool $strict = true)
Create new directory.
at line 157
final static bool
mkdirs(mixed $directories, int $mode = 0777, bool $recursive = false, bool $strict = true)
Create new directories.
at line 174
final static mixed
rmdir(string $directory, bool $strict = true)
Removes a directory.
at line 202
final static mixed
rmdirs(array $directories, bool $strict = true)
Removes a directories.
at line 218
final static bool
rename(string $old_file, string $new_file)
Moves file to different path (rename).
at line 236
final static
fileWrite($filename, $content, $append = false)
at line 261
final static
fileContent($filename)
at line 279
final static mixed
tmpfile(string $template = null, bool $resource = false)
Create temporary file.
at line 292
final static mixed
tmpdir(string $template = null)
Create temporary directory.
at line 321
final static bool
dirExists(string $directory, bool $strict = true)
Checks if directory exists;.
at line 341
final static bool
fileExists(string $file, bool $strict = true)
Checks if file exists;.