Methods summary
public
boolean
|
#
isRelativePath( string $path )
Return whether the path is relative path.
Return whether the path is relative path.
Parameters
Returns
boolean true if the path is relative path, false otherwise.
|
public
string|false
|
#
toAbsolutePath( string $path, string $rootDir )
Cat file path.
Parameters
- $path
string $path File path.
- $rootDir
string $rootDir Absolute path to project root directory.
Returns
string|false Absolute path.
|
public
string|false
|
#
getRealPath( string $path, string $rootDir )
Return real file path.
Parameters
- $path
string $path File path.
- $rootDir
string $rootDir Absolute path to project root directory.
Returns
string|false Real path string if the path string is passed and real path exists, false
otherwise.
|
public
string|false
|
#
getRealDir( string $path, string $rootDir )
Return real directory path.
Return real directory path.
Parameters
- $path
string $path Path.
- $rootDir
string $rootDir Absolute path to project root directory.
Returns
string|false Real directory path string if the path string is passed and real directory
exists, false otherwise.
|
public
string|false
|
#
getRealWritingFilePath( string $path, string $rootDir )
Return real file path to write.
Return real file path to write.
Parameters
- $path
string $path File path.
- $rootDir
string $rootDir Absolute path to project root directory.
Returns
string|false Real file path string if the parent directory exists, false otherwise.
|
public
boolean
|
#
isRealPathExist( string|boolean $realpath )
Return whether the real path exists.
Return whether the real path exists.
Parameters
- $realpath
string|boolean $realpath Real path.
Returns
boolean true if the real path exists, false otherwise.
|
public
boolean
|
#
isRealFileExist( string|boolean $realpath )
Return whether the real file path exists.
Return whether the real file path exists.
Parameters
- $realpath
string|boolean $realpath Real file path.
Returns
boolean true if the real file path exists, false otherwise.
|
public
boolean
|
#
isRealFileReadable( string|boolean $realpath )
Return whether the real file path is readable.
Return whether the real file path is readable.
Parameters
- $realpath
string|boolean $realpath Real file path.
Returns
boolean true if the real file path is readable, false otherwise.
|
public
boolean
|
#
isRealFileWritable( string|boolean $realpath )
Return whether the real file path is writable.
Return whether the real file path is writable.
Parameters
- $realpath
string|boolean $realpath Real file path.
Returns
boolean true if the real file path is writable, false otherwise.
|
public
boolean
|
#
isRealDirExist( string|boolean $realpath )
Return whether the real directory exists.
Return whether the real directory exists.
Parameters
- $realpath
string|boolean $realpath Real directory path.
Returns
boolean true if the real directory exists, false otherwise.
|
public
boolean
|
#
isRealDirWritable( string|boolean $realpath )
Return whether the real directory is writable.
Return whether the real directory is writable.
Parameters
- $realpath
string|boolean $realpath Real directory path.
Returns
boolean true if the real directory is writable, false otherwise.
|