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 8a1bc82 commit eb60e39Copy full SHA for eb60e39
e2e/screenshot.ts
@@ -45,7 +45,13 @@ export class Screenshot {
45
var dir = path.resolve(this.dir, 'screenshots');
46
if (!fs.existsSync(dir)) {
47
console.error(`making dir for ${dir}`);
48
- fs.mkdirSync(dir, 0x744);
+ fs.mkdirSync(dir, 0x777);
49
+ }
50
+
51
+ if (fs.existsSync(dir)) {
52
+ console.error(`make dir successful`);
53
+ } else {
54
+ console.error(`make dir failed`);
55
}
56
console.error(`write to file ${this.fullPath}`);
57
fs.writeFileSync(this.fullPath, png, {encoding: 'base64' });
0 commit comments