Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Can anyone explain this issue?
This works:
import { listDirSync } from "fs";
import * as fs from "fs";
let ascii_read = fs.readFileSync("./resources/me.txt", "ascii");
console.log("ASCII Data: " + ascii_read);
But this fails in the next line, with: "opendir failed for: "./resources/"
const listDir = listDirSync("./resources/");
Author | ch, passion for improvement.
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more