MCPcopy Create free account
hub / github.com/DustinBrett/daedalOS / makeNode

Function makeNode

scripts/fs2json.js:24–34  ·  view source on GitHub ↗
(st, name)

Source from the content-addressed store, hash-verified

22 let totalSize = 0;
23
24 const makeNode = (st, name) => {
25 const obj = [];
26
27 obj[IDX_NAME] = name;
28 obj[IDX_SIZE] = st.size;
29 obj[IDX_MTIME] = Number(st.mtime);
30
31 totalSize += st.size;
32
33 return obj;
34 };
35
36 const walk = (walkDir) => {
37 return new Promise((resolve, reject) => {

Callers 1

recurFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected