FileWorker: Async queue-based file synchronization system

Introduces FileWorker for background file operations with dual-queue
architecture (public/private). Handles refresh, move, and rename tasks
with progress tracking, job completion monitoring, and batch processing.
Compares DB FileGroups to filesystem state using FileGroupDiff to detect
new/modified/deleted files. Designed for memory efficiency on Raspberry Pi.
This commit is contained in:
Roland 2026-01-09 14:01:25 -07:00
parent 1d9b794fca
commit 173284699d
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
49 changed files with 4256 additions and 861 deletions

View file

@ -1174,10 +1174,10 @@ export async function deleteFile(paths) {
}
export async function fetchFilesProgress() {
const response = await apiGet(`${API_URI}/files/refresh_progress`);
const response = await apiGet(`${API_URI}/files/worker_status`);
if (response.ok) {
const json = await response.json();
return json['progress'];
return json['status'];
}
}