You appear to be a bot. Output may be restricted
Description
Normalize a path to UNIX styleSimilar to wp_normalize_path except this doesn't deal with double slashes… which might be a good thing if we try to use it for URLs!
Usage
$string = oik_normalize_path( $path );
Parameters
- $path
- ( string ) required – path or filename
Returns
string path with backslashes converted to forward and drive letter capitalizedSource
File name: oik-batch/libs/oik-cli.phpLines:
1 to 7 of 7
function oik_normalize_path( $path ) { $path = str_replace( "\\", "/", $path ); if ( ':' === substr( $path, 1, 1 ) ) { $path = ucfirst( $path ); } return( $path ); }View on GitHub