We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
chmod
1 parent be40598 commit f1fe4a2Copy full SHA for f1fe4a2
1 file changed
extensions/ql-vscode/test/unit-tests/common/unzip.test.ts
@@ -1,7 +1,7 @@
1
import { createHash } from "crypto";
2
import { open } from "fs/promises";
3
import { join, relative, resolve, sep } from "path";
4
-import { pathExists, readdir } from "fs-extra";
+import { chmod, pathExists, readdir } from "fs-extra";
5
import { dir, DirectoryResult } from "tmp-promise";
6
import {
7
excludeDirectories,
@@ -98,6 +98,10 @@ describe("unzipToDirectory", () => {
98
});
99
100
afterEach(async () => {
101
+ for await (const file of walkDirectory(tmpDir.path)) {
102
+ await chmod(file, 0o777);
103
+ }
104
+
105
await tmpDir?.cleanup();
106
107
0 commit comments