mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Fix $tw.utils.getSubdirectories()
This commit is contained in:
parent
c87f4a1e94
commit
d6ee700bca
@ -23,9 +23,9 @@ exports.getSubdirectories = function(dirPath) {
|
||||
return null;
|
||||
}
|
||||
var subdirs = [];
|
||||
$tw.utils.each(fs.readdirSync(dirPath),function(itemPath) {
|
||||
if($tw.utils.isDirectory(itemPath)) {
|
||||
subdirs.push(itemPath);
|
||||
$tw.utils.each(fs.readdirSync(dirPath),function(item) {
|
||||
if($tw.utils.isDirectory(path.resolve(dirPath,item))) {
|
||||
subdirs.push(item);
|
||||
}
|
||||
});
|
||||
return subdirs;
|
||||
|
Loading…
Reference in New Issue
Block a user