mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
localfilesystem tests failing on Windows
This commit is contained in:
parent
87f8fd34b8
commit
9ad1f769d3
@ -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
Block a user