Path
class Path
A Path handling class
Methods
static
boolean
canChmod(
string $path)
Checks if a path's permissions can be changed.
static
boolean
setPermissions(
string $path,
string $filemode = '0644',
string $foldermode = '0755')
Chmods files and directories recursively to given permissions.
static
string
getPermissions(
string $path)
Get the permissions of the file/folder at a given path.
static
string
check(
string $path)
Checks for snooping outside of the file system root.
static
string
clean(
string $path,
string $ds = DIRECTORY_SEPARATOR)
Function to strip additional / or \ in a path name.
static
boolean
isOwner(
string $path)
Method to determine if script owns the path.
static
mixed
find(
mixed $paths,
string $file)
Searches the directory paths for a given file.