drek icon indicating copy to clipboard operation
drek copied to clipboard

Error: EISDIR: illegal operation on a directory

Open zeinlol opened this issue 2 years ago • 1 comments

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 avatar Nov 08 '21 13:11 zeinlol

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

zeinlol avatar Nov 08 '21 13:11 zeinlol