You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the recursive search function is not working properly.
When setting the search folder to a folder two (or more) levels higher in the hierarchy (i.e. to main_folder in a hierarchy main_folder > sub_folder > literature_notes), the plugin does not find any notes (although existing).
When setting the search folder to a folder one level in the hierarchy (i.e. sub_folder in a hierarchy as above) or the folder containing MD notes (i.e. literature_notes) is works.
The text was updated successfully, but these errors were encountered:
Upload your debugging logs (Tools > MarkDB-Connect Troubleshooting > Save Full Debugging Logs)
If you want to troubleshoot on your end, you can run this from Tools > Developer > Run JavaScript to see what files MDBC is finding
constlistDirContents=async(dirpath)=>{constitems=[]awaitZotero.File.iterateDirectory(dirpath,(item)=>{if(!item.name.startsWith('.')){items.push(item)}})returnitems}constlistFilesRecursively=asyncfunction*(dirpath){// Does not follow symbolic links //constentries=awaitlistDirContents(dirpath)for(constentryofentries){constzfile=Zotero.File.pathToFile(entry.path)if(zfile.isReadable()&&!zfile.isHidden()&&!zfile.isSpecial()&&!zfile.isSymlink()){if(zfile.isDirectory()){yield*listFilesRecursively(entry.path)}elseif(zfile.isFile()){yieldentry}}}}constfiles=[]forawait(constfileoflistFilesRecursively("YOUR-LOCAL-PATH-TO/main_folder")){files.push(file)}returnfiles
It seems that the recursive search function is not working properly.
When setting the search folder to a folder two (or more) levels higher in the hierarchy (i.e. to
main_folder
in a hierarchymain_folder > sub_folder > literature_notes
), the plugin does not find any notes (although existing).When setting the search folder to a folder one level in the hierarchy (i.e.
sub_folder
in a hierarchy as above) or the folder containing MD notes (i.e.literature_notes
) is works.The text was updated successfully, but these errors were encountered: