Example #1
0
 public static function getFileFormatByOs($filename)
 {
     if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
         return File::getFileWindowsFormat($filename);
     } else {
         return File::getFileUnixFormat($filename);
     }
 }