From 4eada46e7cd60525683a32690632982df8434062 Mon Sep 17 00:00:00 2001 From: Manny Rodrigues <47306715+endurtech@users.noreply.github.com> Date: Fri, 22 Feb 2019 12:18:34 -0500 Subject: [PATCH] Fix Issue with Adding Volume in Windows Windows 10 Home, 64bit. When attempting to "Add Volume", click on "Browse", select a directory location but upon doing so received error which looked like it was expecting a Mac directory (/Users) rather than Windows (C:\Users). The correction I am submitting appears to have fixed the issue for me. --- src/SiteInfoVolumes.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SiteInfoVolumes.jsx b/src/SiteInfoVolumes.jsx index c6d9f12..e75ee55 100644 --- a/src/SiteInfoVolumes.jsx +++ b/src/SiteInfoVolumes.jsx @@ -290,7 +290,7 @@ Also, all source paths must begin with either /Users or /Volumes.`); dialog.showErrorBox('Error', 'Sorry! You must provide a path in C:\\Users.'); return false; - } else if (volume.source.indexOf('/Users') !== 0) { + } else if (os.platform() !== 'win32' && volume.source.indexOf('/Users') !== 0) { dialog.showErrorBox('Error', 'Sorry! You must provide a path in /Users.'); return false;