π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Optimize
Manav Rathi4c28e83dbb4b
diff --git a/desktop/src/main/services/watch.ts b/desktop/src/main/services/watch.tsindex a56c0cf6c3..975d8a7c35 100644--- a/desktop/src/main/services/watch.ts+++ b/desktop/src/main/services/watch.ts@@ -35,8 +35,8 @@ export const createWatcher = (mainWindow: BrowserWindow) => {return watcher;};-const eventData = (path: string): [string, FolderWatch] => {- path = posixPath(path);+const eventData = (platformPath: string): [string, FolderWatch] => {+ const path = posixPath(platformPath);const watch = folderWatches().find((watch) =>path.startsWith(watch.folderPath + "/"),diff --git a/desktop/src/main/utils/electron.ts b/desktop/src/main/utils/electron.tsindex 43471cd1ee..93e8565ef2 100644--- a/desktop/src/main/utils/electron.ts+++ b/desktop/src/main/utils/electron.ts@@ -9,8 +9,8 @@ import log from "../log";export const isDev = !app.isPackaged;/**- * Convert a file system {@link filePath} that uses the local system specific- * path separators into a path that uses POSIX file separators.+ * Convert a file system {@link platformPath} that uses the local system+ * specific path separators into a path that uses POSIX file separators.** For all paths that we persist or pass over the IPC boundary, we always use* POSIX paths, even on Windows.@@ -25,8 +25,10 @@ export const isDev = !app.isPackaged;* >* > https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats*/-export const posixPath = (filePath: string) =>- filePath.split(path.sep).join(path.posix.sep);+export const posixPath = (platformPath: string) =>+ path.sep == path.posix.sep+ ? platformPath+ : platformPath.split(path.sep).join(path.posix.sep);/*** Run a shell command asynchronously.