(root: string, rel: string)
| 728 | } |
| 729 | |
| 730 | export async function deleteNote(root: string, rel: string): Promise<void> { |
| 731 | const abs = resolveSafe(root, rel) |
| 732 | await fs.rm(abs, { force: true }) |
| 733 | } |
| 734 | |
| 735 | export async function emptyTrash(root: string): Promise<void> { |
| 736 | const trashDir = path.join(root, 'trash') |