Skip to content

Commit f05ab42

Browse files
authored
Merge pull request #325 from HRanjan-11/CYP-974
added accessibility folder
2 parents dfa9902 + 91135f2 commit f05ab42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

accessibility/plugin/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const fs = require("fs");
2+
const path = require('path');
23
const Accessibility = (on, config) => {
34

45
on('task', {
@@ -7,6 +8,10 @@ const Accessibility = (on, config) => {
78
return null
89
},
910
initializeFile(filePath) {
11+
const dir = path.dirname(filePath);
12+
if (!fs.existsSync(dir)) {
13+
fs.mkdirSync(dir, { recursive: true });
14+
}
1015
if (!fs.existsSync(filePath)) {
1116
fs.writeFileSync(filePath, '[]');
1217
}

0 commit comments

Comments
 (0)