question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"utimes" doesn't work for directories: "EISDIR: illegal operation on a directory, open ..." error

See original GitHub issue

utimes calls utimesBase which uses openSync call internally but openSync call on a directory obviously throws EISDIR error.

https://github.com/streamich/memfs/blob/674a1e78469e1e9e766db7e3160538e958fdd97b/src/volume.ts#L1771-L1778

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kellymcommented, Sep 11, 2019

This seems related to https://github.com/streamich/memfs/issues/58. Maybe r is too restrictive there? Modifying those lines seems to fix the issue for me.

0reactions
streamichcommented, Oct 29, 2022

🎉 This issue has been resolved in version 3.4.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM stuck giving the same error EISDIR: Illegal operation on ...
EISDIR stands for "Error, Is Directory". This means that NPM is trying to do something to a file but it is a directory....
Read more >
eisdir: illegal operation on a directory - You.com
npm command - Error: EISDIR: illegal operation on a directory, read. First try to locate you npmrc file in your computer. Try this...
Read more >
File System
Emitted when something changes in a watched directory or file. ... (err, fd) => { // => [Error: EISDIR: illegal operation on a...
Read more >
sfdx cli throwing error "EISDIR: illegal operation on a directory ...
You should be able to fix this by changing the permissions of that folder to your user. Something like:
Read more >
concept directory in category node - liveBook · Manning
fs.js:60 throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs ^ Error: EISDIR: illegal operation on a directory, read at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found