Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: EISDIR: illegal operation on a directory #30

Closed
AnatoleLucet opened this issue Feb 16, 2020 · 4 comments
Closed

Error: EISDIR: illegal operation on a directory #30

AnatoleLucet opened this issue Feb 16, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@AnatoleLucet
Copy link
Collaborator

AnatoleLucet commented Feb 16, 2020

➜  destiny-upstream git:(master) node dist/src/index.js "tests/fixtures/simple"
Files to structure:
[ 'tests/fixtures/simple' ]
(node:5810) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (fs.js:494:3)
    at tryReadSync (fs.js:333:20)
    at Object.readFileSync (fs.js:370:19)
    at Object.findEdges (/home/anatole/dev/destiny-upstream/dist/src/index/formatFileStructure/shared/findEdges.js:9:31)
    at Object.buildGraph (/home/anatole/dev/destiny-upstream/dist/src/index/formatFileStructure/buildGraph.js:31:21)
    at /home/anatole/dev/destiny-upstream/dist/src/index/formatFileStructure.js:20:74
    at Generator.next (<anonymous>)
    at /home/anatole/dev/destiny-upstream/dist/src/index/formatFileStructure.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/home/anatole/dev/destiny-upstream/dist/src/index/formatFileStructure.js:4:12)
(node:5810) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5810) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@AnatoleLucet AnatoleLucet added the bug Something isn't working label Feb 16, 2020
@AnatoleLucet AnatoleLucet changed the title Error: EISDIR: illegal operation on a directory, read Error: EISDIR: illegal operation on a directory Feb 16, 2020
@benawad
Copy link
Owner

benawad commented Feb 16, 2020

I'm fixing this right now, I assume the array you pass in is files and tests/fixtures/simple is a folder

@AnatoleLucet
Copy link
Collaborator Author

Yep, simply a node dist/src/index.js "tests/fixtures/simple" in the root folder of Destiny.

@benawad
Copy link
Owner

benawad commented Feb 16, 2020

just pushed the change, it should handle any number of globs or folders

@AnatoleLucet
Copy link
Collaborator Author

That's perfect, nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants