From 1c963d6480944acf4857d5b84c100bf393aca316 Mon Sep 17 00:00:00 2001
From: Greg DiCristofaro <gregd@basistech.com>
Date: Tue, 22 Aug 2023 12:39:47 -0400
Subject: [PATCH] fixes from testing

---
 Core/src/org/sleuthkit/autopsy/casemodule/Case.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java
index 57739bda76..f39b286f1c 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java
@@ -195,7 +195,7 @@ public class Case {
     private CollaborationMonitor collaborationMonitor;
     private Services caseServices;
     // matches something like '\\.\PHYSICALDRIVE0'
-    private static final String PLACEHOLDER_DS_PATH_REGEX = "^\\s*\\\\\\\\\\.\\\\(PHYSICALDRIVE)\\d*\\s*$";
+    private static final String PLACEHOLDER_DS_PATH_REGEX = "^\\s*\\\\\\\\\\.\\\\(PHYSICALDRIVE\\d*)\\s*$";
 
     private volatile boolean hasDataSource = false;
     private volatile boolean hasData = false;
@@ -1305,7 +1305,7 @@ private static void updateGUIForCaseOpened(Case newCurrentCase) {
         for (Map.Entry<Long, String> entry : imgPaths.entrySet()) {
             long obj_id = entry.getKey();
             String path = entry.getValue();
-            boolean fileExists = (new File(path).isFile() || DriveUtils.driveExists(path));
+            boolean fileExists = (new File(path).exists()|| DriveUtils.driveExists(path));
             if (!fileExists) {
                 // CT-7336: ignore relocating datasources if file provider is present and placeholder path is used.
                 if (newCurrentCase.getMetadata() != null
-- 
GitLab