07-21-2023, 04:10 PM
*this is not an exact answer but may help:*
**i think** if you want to `read` or `readSync` a file that doesn't exist you will encounter an `EPERM` error...
> in many programming languages, any permission related error may not
> directly means an actual permission issue
for example in `PHP` Folders (not files) must delete by php `rmdir()` method but if you want to do that with `unlink()` , u will encountered with a wrong Warning message that says "permission denied"
**i think** if you want to `read` or `readSync` a file that doesn't exist you will encounter an `EPERM` error...
> in many programming languages, any permission related error may not
> directly means an actual permission issue
for example in `PHP` Folders (not files) must delete by php `rmdir()` method but if you want to do that with `unlink()` , u will encountered with a wrong Warning message that says "permission denied"