mirror of https://github.com/node-red/node-red.git
Merge pull request #620 from drwoods/master
fix 3 localfilesystem tests failing on Windowspull/625/head
commit
c1a32c4eb9
|
@ -138,8 +138,8 @@ var localfilesystem = {
|
|||
|
||||
if (settings.flowFile) {
|
||||
flowsFile = settings.flowFile;
|
||||
|
||||
if (flowsFile[0] == "/") {
|
||||
// handle Unix and Windows "C:\"
|
||||
if ((flowsFile[0] == "/") || (flowsFile[1] == ":")) {
|
||||
// Absolute path
|
||||
flowsFullPath = flowsFile;
|
||||
} else if (flowsFile.substring(0,2) === "./") {
|
||||
|
|
Loading…
Reference in New Issue