コード例 #1
0
ファイル: Folder.php プロジェクト: swayok/utils
 /**
  * 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 "/")
  * @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#Folder::correctSlashFor
  */
 public static function correctSlashFor($path)
 {
     return Folder::isWindowsPath($path) ? '\\' : '/';
 }