MCPcopy
hub / github.com/CodeboxIDE/codebox / prepareFs

Function prepareFs

client/core/localfs.js:83–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 };
82
83 var prepareFs = function() {
84 if (_isInit) return Q();
85 return fsCall(filer.init, {
86 persistent: true,
87 size: 10 * 1024 * 1024
88 }, filer)
89 .then(function() {
90 logger.log("fs is ready");
91 _isInit = true;
92 return Q();
93 });
94 };
95
96 var needFsReady = function(fn) {
97 return function() {

Callers 1

needFsReadyFunction · 0.85

Calls 2

QFunction · 0.85
fsCallFunction · 0.85

Tested by

no test coverage detected