Convert given directory name to use unix slashes and enforce trailing or no-trailing slash
Usage
// basic usage
$string = $files->unixDirName(string $dir);
// usage with all arguments
$string = $files->unixDirName(string $dir, bool $trailingSlash = true);
Arguments
Name | Type(s) | Description |
---|---|---|
dir | string | Directory name to adust (if it needs it) |
trailingSlash (optional) | bool | True to force trailing slash, false to force no trailing slash (default=true) |
Return value
string
Adjusted directory name
API reference based on ProcessWire core version 3.0.236