Error generating complete flow library list on OSX

Must use path.join to concatenate paths safely.
This commit is contained in:
Nick O'Leary 2015-06-29 16:00:10 +01:00
parent df0110913a
commit a0ce095807
1 changed files with 7 additions and 6 deletions

View File

@ -15,6 +15,7 @@
**/
var when = require('when');
var Path = require('path');
var storageModule;
var settingsAvailable;
@ -146,7 +147,7 @@ function listFlows(path) {
var promises = [];
res.forEach(function(r) {
if (typeof r === "string") {
promises.push(listFlows(path+r));
promises.push(listFlows(Path.join(path,r)));
} else {
promises.push(when.resolve(r));
}