Future<void> safeDelete(String path) async { final dir = Directory(path); if (await dir.exists()) { await dir.delete(recursive: true); } }