/** * Returns a correct set of slashes for given $path. (\\ for Windows paths and / for other paths.) * * @param string $path Path to check * @return string Set of slashes ("\\" or "/") * @access public * @static */ function correctSlashFor($path) { if (XoopsFolderHandler::isWindowsPath($path)) { return '\\'; } return '/'; }