fix startup mounting (closes #211 )

This commit is contained in:
FTCHD
2026-06-05 21:10:35 +03:00
parent e936aa2861
commit 2696d4660f
-12
View File
@@ -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,