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

index 5dcb523909c8387d0636124c64f311427d282dcc..7082a636ec5378b76bd42c41cbdff78a12647625 100644 (file)
@@ -22,7 +22,7 @@ public class EscortFileUpdaterStep 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