Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit d0ce3ca

Browse files
Adding condition for skipping symlinks when installing extensions via the extension manager
When installing extensions that have symlinks via the extension manager, they will fail with a message regarding an invalid zip file. This can be tested with https://github.com/MiguelCastillo/Brackets-SymbolicLinks
1 parent c494e93 commit d0ce3ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extensibility/node/package-validator.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,10 @@ function extractAndValidateFiles(zipPath, extractDir, options, callback) {
309309
});
310310

311311
unzipper.extract({
312-
path: extractDir
312+
path: extractDir,
313+
filter: function (file) {
314+
return file.type !== "SymbolicLink";
315+
}
313316
});
314317
}
315318

0 commit comments

Comments
 (0)