git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Fri, 21 Jan 2022 01:56:59 +0000 (01:56 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Fri, 21 Jan 2022 01:56:59 +0000 (01:56 +0000)
server/-product/production/AMC/jobs/steps/FileValidatorStep.java

index 362155f579e297f384f30a21e293164281ae8465..23c9e37a468729a9b780bcfc539dba20d4ea15d4 100644 (file)
@@ -27,7 +27,7 @@ public class FileValidatorStep extends JobStep {
                if (!RemoteStoreProtocol.LOCAL.equals(sourceStoreUri.getProtocol()))\r
                        throw new Exception("Store URI protocol must be local.");\r
                Path filePath = Paths.get(sourceStoreUri.toString(true), fileName);\r
-               if (!filePath.toFile().exists())\r
+               if (!Files.exists(filePath))\r
                        throw new FileNotFoundException("File not exists: " + filePath.toString());\r
 \r
                Path escortFilePath = Paths.get(escortFile);\r