I was uploading my dataset using the BrainLife.io CLI and I kept running into this issue whenever I was uploading data.
node:fs:751
return binding.read(fd, buffer, offset, length, position);
^
Error: EISDIR: illegal operation on a directory, read
at Object.readSync (node:fs:751:18)
at tryReadSync (node:fs:425:20)
at Object.readFileSync (node:fs:479:19)
at /usr/lib/node_modules/brainlife/bl-data-upload.js:78:39
at FSReqCallback.oncomplete (node:fs:199:5) {
errno: -21,
code: 'EISDIR',
syscall: 'read'
}
Node.js v20.19.1