MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / statfs

Function statfs

src/lib/libnoderawfs.js:104–113  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

102 return fs.fstatSync(stream.nfd);
103 },
104 statfs(path) {
105 // Node's fs.statfsSync API doesn't provide these attributes so include
106 // some defaults.
107 var defaults = {
108 fsid: 42,
109 flags: 2,
110 namelen: 255,
111 }
112 return Object.assign(defaults, fs.statfsSync(path));
113 },
114 statfsStream(stream) {
115 return FS.statfs(stream.path);
116 },

Callers 2

libfs.jsFile · 0.70
libnodefs.jsFile · 0.70

Calls 1

assignMethod · 0.45

Tested by

no test coverage detected