We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe2f69 commit 12f4c85Copy full SHA for 12f4c85
client/src/addon_manager/services/addonManager.service.ts
@@ -31,9 +31,14 @@ class AddonManager {
31
});
32
}
33
34
- const addons = await filesystem.readDirectory(installLocation);
35
-
36
- for (const addon of addons ?? []) {
+ const ignoreList = [".DS_Store"];
+ let addons = await filesystem.readDirectory(installLocation);
+ if (!addons) {
37
+ localLogger.warn("No addons found in installation folder");
38
+ return;
39
+ }
40
+ addons = addons.filter((a) => !ignoreList.includes(a.name));
41
+ for (const addon of addons) {
42
this.addons.set(addon.name, new Addon(addon.name, addon.uri));
43
localLogger.verbose(`Found ${addon.name}`);
44
0 commit comments