Helper class for handling file and directory paths.
package | Default |
---|
isDot(string|\FeaturePhp\Helper\SplFileInfo $fileName) : boolean
string
\FeaturePhp\Helper\SplFileInfo
boolean
join(string|null $lhs, string $rhs) : string
If the left path is null, returns the right path, making the left path optional (see https://stackoverflow.com/q/1091107).
string
null
string
string
removeDirectory(string $path) : boolean
string
boolean
resolve(string $fileName) : string
This only works for unambiguous paths not depending on the working directory (e.g. ../test can not be resolved) (see https://stackoverflow.com/q/20522605).
string
string
rootPath(string $directory)
string
return string
stripBase(string $path, string $base = null
) : string
If no base is supplied, the working directory is used.
string
string
string