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());