How to get file/directory owner in javascript in a platform-independent way

Viewed 65

I'm trying to get the SID of the owner of a file/directory in Windows using javascript.

I tried using fs.lstatSync(p) but it only returns the uid and the gid (only relevant to linux).

How do I get the SID if I'm on Windows ?

0 Answers
Related