07-22-2021 01:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-22-2021 01:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

08-09-2021 20:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-09-2021 20:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Does anyone know why a read works but directory list fails on the same directory?
Author | ch, passion for improvement.

