Checks if a path's permissions can be changed.
static boolean
canChmod
(string $path)
-
string
$path: Path to check.
Checks for snooping outside of the file system root.
static string
check
(string $path)
-
string
$path: A file system path to check.
Function to strip additional / or \ in a path name.
static string
clean
(string $path, [string $ds = DIRECTORY_SEPARATOR])
-
string
$path: The path to clean.
-
string
$ds: Directory separator (optional).
Searches the directory paths for a given file.
static mixed
find
(mixed $paths, string $file)
-
mixed
$paths: An path string or array of path strings to search in
-
string
$file: The file name to look for.
Get the permissions of the file/folder at a given path.
static string
getPermissions
(string $path)
-
string
$path: The path of a file/folder.
Method to determine if script owns the path.
static boolean
isOwner
(string $path)
-
string
$path: Path to check ownership.
Chmods files and directories recursively to given permissions.
static boolean
setPermissions
(string $path, [string $filemode = '0644'], [string $foldermode = '0755'])
-
string
$path: Root path to begin changing mode [without trailing slash].
-
string
$filemode: Octal representation of the value to change file mode to [null = no change].
-
string
$foldermode: Octal representation of the value to change folder mode to [null = no change].