From: Sweidan Omar Date: Fri, 21 Jan 2022 01:55:45 +0000 (+0000) Subject: git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube... X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=838f06385d2f0991f3f577a055c7ed9b0269085e;p=mediacube.git git-tfs-id: [tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32826 --- 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);