api.md 1.0 KB

cfs-worker Public API

CollectionFS, file worker - handles file copies/versions

API documentation automatically generated by docmeteor.

TODO: Use power queue to handle throttling etc. Use observe to monitor changes and have it create tasks for the power queue

to perform.

fs.FileWorker Object  Server

This property FileWorker is defined in FS

FS.FileWorker = { ... fileWorker.js:9

-

fsFileworker.observe(fsCollection)  Server

This method observe is defined in FS.FileWorker

Arguments

Returns {undefined}

Sets up observes on the fsCollection to store file copies and delete temp files at the appropriate times.

FS.FileWorker.observe = function(fsCollection) { ... fileWorker.js:20