π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathicd4b2a681084
diff --git a/web/apps/photos/src/services/watchFolder/utils.ts b/web/apps/photos/src/services/watchFolder/utils.tsindex bd6ceb853c..e69de29bb2 100644--- a/web/apps/photos/src/services/watchFolder/utils.ts+++ b/web/apps/photos/src/services/watchFolder/utils.ts@@ -1,5 +0,0 @@-export const getParentFolderName = (filePath: string) => {- const folderPath = filePath.substring(0, filePath.lastIndexOf("/"));- const folderName = folderPath.substring(folderPath.lastIndexOf("/") + 1);- return folderName;-};diff --git a/web/apps/photos/src/services/watchFolder/watchFolderService.ts b/web/apps/photos/src/services/watchFolder/watchFolderService.tsindex 791aed445d..ac0ca3a885 100644--- a/web/apps/photos/src/services/watchFolder/watchFolderService.ts+++ b/web/apps/photos/src/services/watchFolder/watchFolderService.ts@@ -15,7 +15,6 @@ import { groupFilesBasedOnCollectionID } from "utils/file";import { getValidFilesToUpload } from "utils/watch";import { removeFromCollection } from "../collectionService";import { getLocalFiles } from "../fileService";-import { getParentFolderName } from "./utils";import {diskFileAddedCallback,diskFileRemovedCallback,@@ -642,3 +641,9 @@ class watchFolderService {}export default new watchFolderService();++export const getParentFolderName = (filePath: string) => {+ const folderPath = filePath.substring(0, filePath.lastIndexOf("/"));+ const folderName = folderPath.substring(folderPath.lastIndexOf("/") + 1);+ return folderName;+};