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,