This commit is contained in:
Manav Rathi 2024-04-27 17:06:33 +05:30
parent 536bcf1091
commit 6671a62c78
No known key found for this signature in database

View file

@ -611,7 +611,7 @@ const isSyncedOrIgnoredPath = (path: string, watch: FolderWatch) =>
const collectionNameForPath = (path: string, watch: FolderWatch) =>
watch.collectionMapping == "root"
? dirname(watch.folderPath)
? basename(watch.folderPath)
: parentDirectoryName(path);
const parentDirectoryName = (path: string) => basename(dirname(path));