xrootd 1.0.0-beta.3 → 1.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -591,8 +591,9 @@ function buildMkdirRequest(streamId, path, mode = 493) {
591
591
  const msg = new Message(24 + pathBytes.length);
592
592
  msg.writeBytes(streamIdToBytes(streamId));
593
593
  msg.writeInt16BE(RequestId.Mkdir);
594
+ msg.writeUInt8(0);
595
+ msg.writeBytes(/* @__PURE__ */ new Uint8Array(13));
594
596
  msg.writeInt16BE(mode & 65535);
595
- msg.writeBytes(/* @__PURE__ */ new Uint8Array(14));
596
597
  msg.writeInt32BE(pathBytes.length);
597
598
  msg.writeBytes(pathBytes);
598
599
  return msg.getBuffer();
@@ -1381,7 +1382,7 @@ function createStatInfo(data) {
1381
1382
  owner: parts[7] ?? "",
1382
1383
  group: parts[8] ?? "",
1383
1384
  get isDirectory() {
1384
- return (mode & S_IFDIR) !== 0;
1385
+ return (serverFlags & StatFlags.IsDir) !== 0;
1385
1386
  },
1386
1387
  get isLink() {
1387
1388
  return (mode & S_IFLNK) === S_IFLNK;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrootd",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "A TypeScript client library for the XRootD protocol",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",