title: Determine if file/foder is hidden in Windows via Electron/Node
body: <p>Is there a way to determine that a file in Windows is hidden in Electron. I need to know the hidden attribute set in Properties of the file and not file name having a dot at front. Currently using <code>fs</code> to get file system information I have no means to obtain this information.</p>
  
  <p>Some sample use case would be (using Typescript):</p>
  
  <pre><code>import fs = require('fs');
  
  getVisibleFilesSync(): string[] {
      const folderItems = fs.readdirSync(folderPath);
      return folderItems.filter(x =&gt; !isHidden(x));
  }
  
  isHidden(path: string): boolean {
      // how to determine if path is hidden under Windows?
  }
  </code></pre>