mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 08:50:13 +01:00
39 lines
1 KiB
Markdown
39 lines
1 KiB
Markdown
|
|
## cfs-worker Public API ##
|
||
|
|
|
||
|
|
CollectionFS, file worker - handles file copies/versions
|
||
|
|
|
||
|
|
_API documentation automatically generated by [docmeteor](https://github.com/raix/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.
|
||
|
|
-
|
||
|
|
|
||
|
|
### <a name="FS.FileWorker"></a>*fs*.FileWorker Object <sub><i>Server</i></sub> ###
|
||
|
|
|
||
|
|
*This property __FileWorker__ is defined in `FS`*
|
||
|
|
|
||
|
|
|
||
|
|
> ```FS.FileWorker = { ...``` [fileWorker.js:9](fileWorker.js#L9)
|
||
|
|
|
||
|
|
|
||
|
|
-
|
||
|
|
|
||
|
|
### <a name="FS.FileWorker.observe"></a>*fsFileworker*.observe(fsCollection) <sub><i>Server</i></sub> ###
|
||
|
|
|
||
|
|
*This method __observe__ is defined in `FS.FileWorker`*
|
||
|
|
|
||
|
|
__Arguments__
|
||
|
|
|
||
|
|
* __fsCollection__ *{[FS.Collection](#FS.Collection)}*
|
||
|
|
|
||
|
|
__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](fileWorker.js#L20)
|
||
|
|
|
||
|
|
|