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

Function addChange

client/core/localfs.js:281–291  ·  view source on GitHub ↗
(path, type, args)

Source from the content-addressed store, hash-verified

279 if (!_syncIsEnable) return Q(changes);
280
281 var addChange = function(path, type, args) {
282 if (isIgnoredFile(path)) {
283 return;
284 }
285 logger.log("change:",type,path);
286 changes.add(_.extend(args || {}, {
287 'path': path,
288 'time': Date.now(),
289 'type': type || "M"
290 }));
291 }
292
293 var getDirChanges = function(path) {
294 var localEntries, boxEntries, currentEntryInfos, fp;

Callers 1

getDirChangesFunction · 0.85

Calls 1

isIgnoredFileFunction · 0.85

Tested by

no test coverage detected