From: Sweidan Omar Date: Fri, 21 Jan 2022 01:56:59 +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=7aa3134dd117676a66cc947d19389ba78240e630;p=mediacube.git git-tfs-id: [tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32828 --- diff --git a/server/-product/production/AMC/jobs/steps/FileValidatorStep.java b/server/-product/production/AMC/jobs/steps/FileValidatorStep.java index 362155f5..23c9e37a 100644 --- a/server/-product/production/AMC/jobs/steps/FileValidatorStep.java +++ b/server/-product/production/AMC/jobs/steps/FileValidatorStep.java @@ -27,7 +27,7 @@ public class FileValidatorStep 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);