-
-
Save pionize/f7a0ae022284ad5cbb8728b66212007d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs-promise' | |
async function printFiles () { | |
const files = await getFilePaths() // Assume this works fine | |
files.forEach(async (file) => { | |
const contents = await fs.readFile(file, 'utf8') | |
console.log(contents) | |
}) | |
} | |
printFiles() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment