code: private static COSFileStatus createFileStatus(Path keyPath, boolean isDir,
        long size, Date modified, long blockSize) {
      if (isDir) {
        return new COSFileStatus(true, false, keyPath);
      } else {
        return new COSFileStatus(size, dateToLong(modified), keyPath, blockSize);
      }
    }
docs: /* Date 'modified' is ignored when isDir is true.