Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oliverschwendener/nodejs-readdir-test


https://github.com/oliverschwendener/nodejs-readdir-test

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

README

        

# fs.readdir test

This is a repository to reproduce a bug when using `fs.readdir` in Electron on Windows.

## How to reproduce

1. Create a file on your desktop with an umlaut, e.g.: `äöü.txt`
2. Invoke `node.js` with node to see how `fs.readdir` works in node. Here is the output:

```
$ node node.js

{ node: '20.12.2' }
[ 'desktop.ini', 'äöü.txt' ]
```

3. Invoke `main.js` with electron to see hot `fs.readdir` works in electron. Here is the output:

```
$ ./node_modules/.bin/electron main.js

{ electron: '31.0.0-alpha.3', node: '20.12.2' }
[ 'desktop.ini', 'äöü.txt' ]
```