Files
arkvault/src/lib/server/modules/filesystem.ts

8 lines
176 B
TypeScript

import { unlink } from "fs/promises";
export const safeUnlink = async (path: string | null | undefined) => {
if (path) {
await unlink(path).catch(console.error);
}
};