import pathlib from "path" ; todo const filetypes = [ ".md" , ".txt" , ".ipynb" , ".journal" , ".nwt" , ".bib" ] ; param p return export function ignoreFile ( p ) { let ext = pathlib . extname ( p ) . toLowerCase ( ) ; return ( ! filetypes . includes ( ext ) ) ; }