We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d69cd commit facab71Copy full SHA for facab71
1 file changed
lib/loader/path.js
@@ -25,10 +25,11 @@ exports.create = async (path) => {
25
26
return simpleGit.revparse(['HEAD']);
27
},
28
- loadFolder: () => {
+ loadFolder: (folderPath) => {
29
30
- // @todo
31
- return [];
+ const fullPath = Path.join(path, folderPath);
+
32
+ return Fs.existsSync(fullPath) ? Fs.readdirSync(fullPath) : [];
33
34
loadFile: (filename, options = {}) => {
35
0 commit comments