From 7aa3134dd117676a66cc947d19389ba78240e630 Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Fri, 21 Jan 2022 01:56:59 +0000 Subject: [PATCH] git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32828 --- .../-product/production/AMC/jobs/steps/FileValidatorStep.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.54.0