Skip to content

Commit 1aa344c

Browse files
committed
Fixing file path search regex
1 parent 717a377 commit 1aa344c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/picoded/dstack/mongodb/MongoDB_FileWorkspaceMap.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ protected boolean removeFilePath(String oid, String path) {
318318
return rmFlag;
319319
}
320320

321+
protected void performFileCleanup(String oid, String path) {
322+
323+
}
324+
321325
//--------------------------------------------------------------------------
322326
//
323327
// File write
@@ -604,7 +608,7 @@ public Set<String> backend_getFileAndFolderPathSet(final String oid, String fold
604608
// Remove matching path
605609
query = Filters.and(
606610
Filters.eq("metadata._oid", oid),
607-
Filters.regex("filename", "^"+Pattern.quote(folderPath)+".*")
611+
Filters.regex("filename", "^"+Pattern.quote(fullPrefixPath)+".*")
608612
);
609613
}
610614

0 commit comments

Comments
 (0)