Ignore .DS_Store (#339)

As per https://github.com/polkadot-js/ui/issues/337#issuecomment-651617556
This commit is contained in:
Jaco Greeff
2020-07-01 13:39:41 +02:00
committed by GitHub
parent 65352f4253
commit ea7fad63a6
+1 -1
View File
@@ -23,7 +23,7 @@ export default class FileStore implements KeyringStore {
public all (cb: (key: string, value: KeyringJson) => void): void {
fs
.readdirSync(this.#path)
.filter((key): boolean => !['.', '..'].includes(key))
.filter((key): boolean => !['.', '..', '.DS_Store'].includes(key))
.forEach((key): void => {
cb(key, this._readKey(key));
});