jvilk / BrowserFS

BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends.
Other
3.06k stars 216 forks source link

Support fs.open/fs.openSync for directories #313

Closed misak113 closed 1 year ago

misak113 commented 3 years ago

You can reproduce the behavior using this snippet in node.js

const fs = require('fs');
var fd = fs.openSync('./this-is-directory', 'r');
fs.closeSync(fd);