Skip to content

Commit

Permalink
fix: create sync: parent path detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Sep 12, 2024
1 parent 6aa0619 commit 26db7ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@filen/web",
"private": false,
"version": "0.1.40",
"version": "0.1.41",
"type": "module",
"description": "Filen Web & Desktop app",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/components/dialogs/createSync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ export function doesSyncNameExist(name: string): boolean {

export function tryingToSyncNetworkDrive(path: string): boolean {
const desktopConfig = getDesktopConfig()
const sep = window.desktopAPI.osPlatform() === "win32" ? "\\" : "/"

return path.startsWith(desktopConfig.networkDriveConfig.mountPoint)
return path.startsWith(desktopConfig.networkDriveConfig.mountPoint + sep)
}

export const CreateSyncDialog = memo(() => {
Expand Down

0 comments on commit 26db7ee

Please sign in to comment.