-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Currently dbx.filesListFolderLongpoll only just adds an entry to the filelist property. In fact we need to create a queue, prioritizing "folder", "file" and "deleted" in this order and then processing everything by updating the filelist entry, adding a new one or deleting and existing one and then handling this entry by downloading, moving or deleting the file.
The ServerFilelistWorker should store the queue, add entries to it and detect moves/renames, MergeWorker should consume the queue and manage a queue for itself containing actions for the download worker, upload worker and filesystem worker (which will do moves, renames and copies). It has to explicitely calculate and store move and rename events, download events, copy events, delete events and upload events.
One consequence might be, that we massively need to re-factor the whole architecture to some other concept. We in fact need more workers and maybe one single master class handling all workers and queues. This requires some conceptional design and is yet to be done.