fix getCollectionNameAndFolderPath
This commit is contained in:
parent
a02e80e31f
commit
96b6769326
|
@ -580,8 +580,11 @@ class watchFolderService {
|
||||||
try {
|
try {
|
||||||
const mappings = this.getWatchMappings();
|
const mappings = this.getWatchMappings();
|
||||||
|
|
||||||
const mapping = mappings.find((mapping) =>
|
const mapping = mappings.find(
|
||||||
filePath.startsWith(mapping.folderPath)
|
(mapping) =>
|
||||||
|
filePath.length > mapping.folderPath.length &&
|
||||||
|
filePath.startsWith(mapping.folderPath) &&
|
||||||
|
filePath[filePath.length] === '/'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!mapping) {
|
if (!mapping) {
|
||||||
|
|
Loading…
Reference in a new issue