From 838f06385d2f0991f3f577a055c7ed9b0269085e Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Fri, 21 Jan 2022 01:55:45 +0000 Subject: [PATCH] git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32826 --- .../production/AMC/jobs/steps/EscortFileUpdaterStep.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/-product/production/AMC/jobs/steps/EscortFileUpdaterStep.java b/server/-product/production/AMC/jobs/steps/EscortFileUpdaterStep.java index 5dcb5239..7082a636 100644 --- a/server/-product/production/AMC/jobs/steps/EscortFileUpdaterStep.java +++ b/server/-product/production/AMC/jobs/steps/EscortFileUpdaterStep.java @@ -22,7 +22,7 @@ public class EscortFileUpdaterStep extends JobStep { if (!RemoteStoreProtocol.LOCAL.equals(sourceStoreUri.getProtocol())) throw new Exception("Store URI protocol must be local."); Path filePath = Paths.get(sourceStoreUri.toString(true), fileName); - if (!filePath.toFile().exists()) + if (!Files.exists(filePath)) throw new FileNotFoundException("File not exists: " + filePath.toString()); Path escortFilePath = Paths.get(escortFile); -- 2.54.0