mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 08:26: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() {
|
synchronized private Map<String, String> getMappedDrives() {
|
||||||
Map<String, String> driveMap = new HashMap<>();
|
Map<String, String> driveMap = new HashMap<>();
|
||||||
|
|
||||||
|
if (PlatformUtil.isWindowsOS() == false) {
|
||||||
|
return driveMap;
|
||||||
|
}
|
||||||
|
|
||||||
File mappedDrive = Paths.get(System.getenv(TEMP_FOLDER), nameString + MAPPED_DRIVES).toFile();
|
File mappedDrive = Paths.get(System.getenv(TEMP_FOLDER), nameString + MAPPED_DRIVES).toFile();
|
||||||
try {
|
try {
|
||||||
Files.deleteIfExists(mappedDrive.toPath());
|
Files.deleteIfExists(mappedDrive.toPath());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user