win-getchildren-js

1.0.3 • Public • Published

WIN-GETCHILDREN-JS

Getting Folder's children with attributes: Node.js (libuv) function fs.readdir(path[, options], callback) returns parent folder's children names/paths without attributes.

Since native Windows Functions FindFirstFileExW and FindNextFileW return WIN32_FIND_DATAW wfd we developed a small C++ addon returning the children's paths and also attributes as JSON Array.

Usage is quite simple:

import getChildren from "win-getchildren-js";
try {
    const children = getChildren({folderPath});
} catch(error) {
    //... You should catch errors though
}

Package Sidebar

Install

npm i win-getchildren-js

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

11.3 kB

Total Files

8

Last publish

Collaborators

  • ggnaegi