mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Error generating complete flow library list on OSX
Must use path.join to concatenate paths safely.
This commit is contained in:
parent
df0110913a
commit
a0ce095807
@ -15,6 +15,7 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
var when = require('when');
|
var when = require('when');
|
||||||
|
var Path = require('path');
|
||||||
|
|
||||||
var storageModule;
|
var storageModule;
|
||||||
var settingsAvailable;
|
var settingsAvailable;
|
||||||
@ -146,7 +147,7 @@ function listFlows(path) {
|
|||||||
var promises = [];
|
var promises = [];
|
||||||
res.forEach(function(r) {
|
res.forEach(function(r) {
|
||||||
if (typeof r === "string") {
|
if (typeof r === "string") {
|
||||||
promises.push(listFlows(path+r));
|
promises.push(listFlows(Path.join(path,r)));
|
||||||
} else {
|
} else {
|
||||||
promises.push(when.resolve(r));
|
promises.push(when.resolve(r));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user