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

index ffaf54a33e6c79115ea6f04d783cbda583baadee..ffdda16dff698f4e7d5f7ee2bca7031142d28a13 100644 (file)
@@ -26,7 +26,7 @@ public class NEXIOMetadataPersisterStep extends JobStep {
        public Object[] execute(StoreUri targetStoreUri, String escortFile) throws Exception {\r
                try {\r
                        Path escortFilePath = Paths.get(escortFile);\r
-                       if (!escortFilePath.toFile().exists()) {\r
+                       if (!Files.exists(escortFilePath)) {\r
                                logger.error(getMarker(), "Status file does not exists {}", escortFilePath);\r
                                return null;\r
                        }\r