Skip to content

Seems like the CLI is running into the issue where it believe it is reading a directory instead of a file #57

Description

@aldensyi

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions