2023-05-23 18:53:53 +00:00
|
|
|
import { syscall } from "$sb/silverbullet-syscall/syscall.ts";
|
2023-01-13 14:41:29 +00:00
|
|
|
|
2023-05-23 18:53:53 +00:00
|
|
|
export function isSyncing(): Promise<boolean> {
|
|
|
|
return syscall("sync.isSyncing");
|
2023-01-13 14:41:29 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 18:53:53 +00:00
|
|
|
export function hasInitialSyncCompleted(): Promise<boolean> {
|
|
|
|
return syscall("sync.hasInitialSyncCompleted");
|
2023-01-13 14:41:29 +00:00
|
|
|
}
|
2023-08-05 19:09:41 +00:00
|
|
|
|
|
|
|
export function scheduleFileSync(path: string): Promise<void> {
|
|
|
|
return syscall("sync.scheduleFileSync", path);
|
|
|
|
}
|
2023-08-15 18:24:02 +00:00
|
|
|
|
|
|
|
export function scheduleSpaceSync(): Promise<number> {
|
|
|
|
return syscall("sync.scheduleSpaceSync");
|
|
|
|
}
|