Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliverschwendener/nodejs-readdir-test
https://github.com/oliverschwendener/nodejs-readdir-test
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/oliverschwendener/nodejs-readdir-test
- Owner: oliverschwendener
- Created: 2024-05-04T14:36:11.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-06T09:40:35.000Z (6 months ago)
- Last Synced: 2024-05-06T10:52:05.722Z (6 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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' ]
```