mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-01 14:52:08 -08:00
Fix $tw.utils.getSubdirectories()
This commit is contained in:
parent
c87f4a1e94
commit
d6ee700bca
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue