Folder
class Folder (View source)
A Folder handling class
Constants
PATH_ABSOLUTE |
|
PATH_RELATIVE |
|
PATH_BASENAME |
|
Methods
static boolean
copy(string $src, string $dest, boolean $force = false)
Copy a folder.
static boolean
create(string $path = '', integer $mode = 493)
Create a folder -- and all necessary parent folders.
static boolean
delete(string $path)
Delete a folder.
static mixed
move(string $src, string $dest, bool $override = false)
Moves a folder.
static array
files(string $path, boolean $recursive = false, integer $pathType = self::PATH_ABSOLUTE)
files
static array
items(string $path, boolean $recursive = false, integer $pathType = self::PATH_ABSOLUTE)
items
static array
folders(string $path, boolean $recursive = false, integer $pathType = self::PATH_ABSOLUTE)
folders
static array
listFolderTree(string $path, integer $maxLevel = 3, integer $level, integer $parent)
Lists folder in format suitable for tree display.
static string
makeSafe(string $path)
Makes path name safe to use.
Details
at line line 38
static boolean
copy(string $src, string $dest, boolean $force = false)
Copy a folder.
at line line 94
static boolean
create(string $path = '', integer $mode = 493)
Create a folder -- and all necessary parent folders.
at line line 178
static boolean
delete(string $path)
Delete a folder.
at line line 246
static mixed
move(string $src, string $dest, bool $override = false)
Moves a folder.
at line line 294
static array
files(string $path, boolean $recursive = false, integer $pathType = self::PATH_ABSOLUTE)
files
at line line 334
static array
items(string $path, boolean $recursive = false, integer $pathType = self::PATH_ABSOLUTE)
items
at line line 375
static array
folders(string $path, boolean $recursive = false, integer $pathType = self::PATH_ABSOLUTE)
folders
at line line 418
static array
listFolderTree(string $path, integer $maxLevel = 3, integer $level, integer $parent)
Lists folder in format suitable for tree display.
at line line 469
static string
makeSafe(string $path)
Makes path name safe to use.