Files
FACULTATE-LICENTA/CEO/src/workers/directories_watcher_worker.ts
T
2024-11-12 14:00:30 +02:00

18 lines
606 B
TypeScript

import {DirectoryWatcher} from "../helpers/directory_watcher";
import {workerData} from "worker_threads";
const {
memoryManagerPath,
applicationInfoPath,
} = workerData;
const backupDirectoryManager = new DirectoryWatcher(memoryManagerPath, applicationInfoPath, 'backupDirectory');
backupDirectoryManager.start();
const departmentShareManager = new DirectoryWatcher(memoryManagerPath, applicationInfoPath, 'departmentDirectory');
departmentShareManager.start();
const shareFileManager = new DirectoryWatcher(memoryManagerPath, applicationInfoPath, 'shareDirectory');
shareFileManager.start();