import * as fs from "fs";
import * as path from "path";
import * as recursive from "recursive-readdir";
const main = async () => {
const basepath = path.resolve(__dirname, "src");
const allFiles = await recursive(basepath);
const searchExtensions = [".md"];
const fileList = allFiles.filter(filename => searchExtensions.includes(path.extname(filename)));
fileList.forEach(filename => {
const { ctime, mtime, atime } = fs.statSync(filename);
console.log({ filename, ctime, mtime, atime });
});
};
(async () => {
await main();
})();