1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #620 from drwoods/master

fix 3 localfilesystem tests failing on Windows
This commit is contained in:
Nick O'Leary 2015-04-20 15:27:38 +01:00
commit c1a32c4eb9

View File

@ -138,8 +138,8 @@ var localfilesystem = {
if (settings.flowFile) { if (settings.flowFile) {
flowsFile = settings.flowFile; flowsFile = settings.flowFile;
// handle Unix and Windows "C:\"
if (flowsFile[0] == "/") { if ((flowsFile[0] == "/") || (flowsFile[1] == ":")) {
// Absolute path // Absolute path
flowsFullPath = flowsFile; flowsFullPath = flowsFile;
} else if (flowsFile.substring(0,2) === "./") { } else if (flowsFile.substring(0,2) === "./") {