Solar_Dir::fix()

static public string Solar_Dir::fix ( string $dir )

"Fixes" a directory string for the operating system.

Parameters

  • (string) $dir: The directory string to 'fix'.

Returns

  • (string) The "fixed" directory string.

Description

"Fixes" a directory string for the operating system.

Use slashes anywhere you need a directory separator. Then run the string through fixdir() and the slashes will be converted to the proper separator (for example '\' on Windows).

Always adds a final trailing separator.



Local