Folder
class Folder
A Folder handling class
Methods
static
boolean
copy(
string $src,
string $dest,
string $path = '',
boolean $force = false,
boolean $use_streams = 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,
string $path = '',
boolean $use_streams = false)
Moves a folder.
static
boolean
exists(
string $path)
Wrapper for the standard file_exists function
static
array
files(
string $path,
string $filter = '.',
mixed $recurse = false,
boolean $full = false,
array $exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX'),
array $excludefilter = array('^\\..*', '.*~'),
boolean $naturalSort = false)
Utility function to read the files in a folder.
static
array
folders(
string $path,
string $filter = '.',
mixed $recurse = false,
boolean $full = false,
array $exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX'),
array $excludefilter = array('^\\..*'))
Utility function to read the folders in a folder.
static
array
listFolderTree(
string $path,
string $filter,
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
static
boolean
copy(
string $src,
string $dest,
string $path = '',
boolean $force = false,
boolean $use_streams = false)
Copy a folder.
static
boolean
create(
string $path = '',
integer $mode = 493)
Create a folder -- and all necessary parent folders.
static
mixed
move(
string $src,
string $dest,
string $path = '',
boolean $use_streams = false)
Moves a folder.
static
array
files(
string $path,
string $filter = '.',
mixed $recurse = false,
boolean $full = false,
array $exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX'),
array $excludefilter = array('^\\..*', '.*~'),
boolean $naturalSort = false)
Utility function to read the files in a folder.
static
array
folders(
string $path,
string $filter = '.',
mixed $recurse = false,
boolean $full = false,
array $exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX'),
array $excludefilter = array('^\\..*'))
Utility function to read the folders in a folder.