diff --git a/lib/core/notes_cache.dart b/lib/core/notes_cache.dart index 35a17e55..f94699c3 100644 --- a/lib/core/notes_cache.dart +++ b/lib/core/notes_cache.dart @@ -39,6 +39,9 @@ class NotesCache { } for (var fullFilePath in fileList) { + if (!fullFilePath.startsWith(notesBasePath)) { + continue; + } var filePath = fullFilePath.substring(notesBasePath.length); var components = filePath.split(sep);