protected function sanitizePath($path)
    {
        if (empty($path)) {
            return '';
        }

        $path = Files::getUnixStylePath($path);
        if (is_dir($path)) {
            $path = Files::getNormalizedPath($path);
        }

        return $path;
    }
protected function sanitizePath($path)
    {
        if (empty($path)) {
            return '';
        }

        $path = Files::getUnixStylePath($path);
        if (is_dir($path)) {
            $path = Files::getNormalizedPath($path);
        }

        return $path;
    }
protected function sanitizePath ( $ path ) { if ( empty ( $ path ) ) { return '' ; } $ path = Files :: getUnixStylePath ( $ path ) ; if ( is_dir ( $ path ) ) { $ path = Files :: getNormalizedPath ( $ path ) ; } return $ path ; }
Sanitize a path, ensuring it is absolute and
if a directory, suffixed by a trailing slash.

@param string $path
@return string
Sanitize a path ensuring it is absolute and if a directory suffixed by a trailing slash .