From bca44773844056b0ada99ed0280ced203ba5b46d Mon Sep 17 00:00:00 2001 From: Brian Carrier Date: Tue, 22 Mar 2016 23:41:18 -0400 Subject: [PATCH] Map drives only on windows. Caused exceptions on OS X --- .../org/sleuthkit/autopsy/coreutils/UNCPathUtilities.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/coreutils/UNCPathUtilities.java b/Core/src/org/sleuthkit/autopsy/coreutils/UNCPathUtilities.java index 9ba40b7a08..e9ce8a7d95 100644 --- a/Core/src/org/sleuthkit/autopsy/coreutils/UNCPathUtilities.java +++ b/Core/src/org/sleuthkit/autopsy/coreutils/UNCPathUtilities.java @@ -263,6 +263,11 @@ public class UNCPathUtilities { */ synchronized private Map getMappedDrives() { Map driveMap = new HashMap<>(); + + if (PlatformUtil.isWindowsOS() == false) { + return driveMap; + } + File mappedDrive = Paths.get(System.getenv(TEMP_FOLDER), nameString + MAPPED_DRIVES).toFile(); try { Files.deleteIfExists(mappedDrive.toPath());