From 9ad1f769d3d7a01b8d8c9bf74ea3354a18f48864 Mon Sep 17 00:00:00 2001 From: drwoods Date: Thu, 16 Apr 2015 14:46:22 -0400 Subject: [PATCH] localfilesystem tests failing on Windows --- red/storage/localfilesystem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/red/storage/localfilesystem.js b/red/storage/localfilesystem.js index cc8b676da..c758ecd0e 100644 --- a/red/storage/localfilesystem.js +++ b/red/storage/localfilesystem.js @@ -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) === "./") {