07-22-2021 01:41
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
07-22-2021 01:41
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 Answer08-09-2021 20:06
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
08-09-2021 20:06
Does anyone know why a read works but directory list fails on the same directory?
Author | ch, passion for improvement.
Best Answer