From 2696d4660f3fb10527212e93f81052989ed7ef3e Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Fri, 5 Jun 2026 21:10:35 +0300 Subject: [PATCH] fix startup mounting (closes #211 ) --- main.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/main.ts b/main.ts index f87044f..2518fed 100644 --- a/main.ts +++ b/main.ts @@ -13,7 +13,6 @@ import { check } from '@tauri-apps/plugin-updater' import { CronExpressionParser } from 'cron-parser' import { defaultOptions } from 'tauri-plugin-sentry-api' import { getDeepLinkUrl, handleDeepLinkUrl } from './lib/deep' -import { isDirectoryEmpty } from './lib/fs' import { LOCAL_HOST_ID, getHostInfo } from './lib/hosts' import { validateLicense } from './lib/license' import notify from './lib/notify' @@ -527,17 +526,6 @@ async function startupMounts() { remoteConfig.mountOnStart ) try { - const isEmpty = await isDirectoryEmpty(remoteConfig.mountOnStart.mountPoint) - if (!isEmpty) { - console.log( - '[startupMounts] remote config mount point is not empty', - remoteConfig.mountOnStart.mountPoint - ) - throw new Error( - `Mount point for ${remote} is not empty, make sure ${remoteConfig.mountOnStart.mountPoint} is empty` - ) - } - const { mountPoint, remotePath,