code: public static function processDirName($file, $base = null)
      {
          $base || $base = realpath(RUNTIME_PATH);
          return str_replace([
              $base,
              '\\'
          ], [
              '',
              '/'
          ], $file);
      }
docs: 处理文件名称
  
  @param string $file
  @param string $base
  @return mixed