mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Map drives only on windows. Caused exceptions on OS X
This commit is contained in:
parent
a2c6225dca
commit
bca4477384
@ -263,6 +263,11 @@ public class UNCPathUtilities {
|
||||
*/
|
||||
synchronized private Map<String, String> getMappedDrives() {
|
||||
Map<String, String> 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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user