Class JFilesystemWrapperPath
Methods summary
public
boolean
|
#
canChmod( string $path )
Helper wrapper method for canChmod
Helper wrapper method for canChmod
Parameters
- $path
string - $path Path to check.
Returns
boolean - True if path can have mode changed.
Since
3.4
See
|
public
boolean
|
#
setPermissions( string $path, string $filemode = '0644', string $foldermode = '0755' )
Helper wrapper method for setPermissions
Helper wrapper method for setPermissions
Parameters
- $path
string - $path Root path to begin changing mode [without trailing slash].
- $filemode
string - $filemode Octal representation of the value to change file mode to [null = no
change].
- $foldermode
string - $foldermode Octal representation of the value to change folder mode to [null =
no change].
Returns
boolean - True if successful [one fail means the whole operation failed].
Since
3.4
See
|
public
string
|
#
getPermissions( string $path )
Helper wrapper method for getPermissions
Helper wrapper method for getPermissions
Parameters
- $path
string - $path The path of a file/folder.
Returns
string - Filesystem permissions.
Since
3.4
See
|
public
string
|
#
check( string $path )
Helper wrapper method for check
Helper wrapper method for check
Parameters
- $path
string - $path A file system path to check.
Returns
string - A cleaned version of the path or exit on error.
Throws
Since
3.4
See
|
public
string
|
#
clean( string $path, string $ds = DIRECTORY_SEPARATOR )
Helper wrapper method for clean
Helper wrapper method for clean
Parameters
- $path
string - $path The path to clean.
- $ds
string - $ds Directory separator (optional).
Returns
string - The cleaned path.
Throws
Since
3.4
See
|
public
boolean
|
#
isOwner( string $path )
Helper wrapper method for isOwner
Helper wrapper method for isOwner
Parameters
- $path
string - $path Path to check ownership.
Returns
boolean - True if the php script owns the path passed.
Since
3.4
See
|
public
mixed
|
#
find( mixed $paths, string $file )
Helper wrapper method for find
Helper wrapper method for find
Parameters
- $paths
mixed - $paths An path string or array of path strings to search in
- $file
string - $file The file name to look for.
Returns
mixed - The full path and file name for the target file, or boolean false if the file is
not found in any of the paths.
Since
3.4
See
|
Magic methods summary