From 27b43954744525c47a045be547c1b8e77c105972 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Fri, 5 Jun 2026 21:10:49 +0300 Subject: [PATCH] remove unused isDirectoryEmpty function --- lib/fs.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/fs.ts b/lib/fs.ts index aa4124b..dcab3d1 100644 --- a/lib/fs.ts +++ b/lib/fs.ts @@ -1,17 +1,4 @@ -import * as Sentry from '@sentry/browser' import { sep } from '@tauri-apps/api/path' -import { readDir } from '@tauri-apps/plugin-fs' - -export async function isDirectoryEmpty(path: string): Promise { - try { - const entries = await readDir(path) - return entries.length === 0 - } catch (err) { - Sentry.captureException(err) - console.error('Error checking directory:', err) - return false - } -} export function isRemotePath(path: string): boolean { return path.includes(':/') && !path.startsWith(sep())