Support for exporting chats to disk

This commit is contained in:
Scott Nonnenberg
2025-11-19 02:12:04 +10:00
committed by GitHub
parent 6b16d75036
commit c4378d9c24
53 changed files with 2549 additions and 366 deletions

View File

@@ -0,0 +1,9 @@
// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { statfs } from 'node:fs/promises';
export async function getFreeDiskSpace(target: string): Promise<number> {
const { bsize, bavail } = await statfs(target);
return bsize * bavail;
}