Helper class for handling file and directory paths.
| package | Default |
|---|
isDot(string|\FeaturePhp\Helper\SplFileInfo $fileName) : boolean
string\FeaturePhp\Helper\SplFileInfo
booleanjoin(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).
stringnull
string
stringremoveDirectory(string $path) : boolean
string
booleanresolve(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
stringrootPath(string $directory)
stringreturn string
stripBase(string $path, string $base = null) : string
If no base is supplied, the working directory is used.
string
string
string