Files
plainleaf/plug-api/syscalls/sync.ts
T
2024-02-08 21:00:45 +01:00

18 lines
461 B
TypeScript

import { syscall } from "../syscall.ts";
export function isSyncing(): Promise<boolean> {
return syscall("sync.isSyncing");
}
export function hasInitialSyncCompleted(): Promise<boolean> {
return syscall("sync.hasInitialSyncCompleted");
}
export function scheduleFileSync(path: string): Promise<void> {
return syscall("sync.scheduleFileSync", path);
}
export function scheduleSpaceSync(): Promise<number> {
return syscall("sync.scheduleSpaceSync");
}