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 #6

Open
zeinlol opened this issue Nov 8, 2021 · 1 comment · May be fixed by #7
Open

Error: EISDIR: illegal operation on a directory #6

zeinlol opened this issue Nov 8, 2021 · 1 comment · May be fixed by #7

Comments

@zeinlol
Copy link

zeinlol commented Nov 8, 2021

when folder has name "some_folder.js"
this tool thinks that it is a file for scanning and drop in 'illegal operation on a directory' error
Screenshot from 2021-11-08 15-44-02

Solution: add

    if (fs.lstatSync(file).isDirectory()) {
      return;
    }

to app/index.js in 37 line

@zeinlol
Copy link
Author

zeinlol commented Nov 8, 2021

Screenshot from 2021-11-08 15-45-59

scottschreckengaust added a commit to scottschreckengaust/drek that referenced this issue Jul 9, 2024
Fixes chrisallenlane#6

Do not scan a `*.js` that is a directory.
@scottschreckengaust scottschreckengaust linked a pull request Jul 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant