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

index da308d3c02d81a04b60870004bf91ddbcec1b832..d579ca5dea47fc6b6a0171acb88aac0fe8713f86 100644 (file)
@@ -234,7 +234,7 @@ public class EscortFiles {
 \r
        public static boolean isCatchedFileExists(Path escortFile) {\r
                Path catchedFilePath = Paths.get(escortFile.toString() + DOT_CATCHED);\r
-               return catchedFilePath.toFile().exists();\r
+               return Files.exists(catchedFilePath);\r
        }\r
 \r
        /***\r
@@ -245,19 +245,19 @@ public class EscortFiles {
         */\r
        public static boolean isMediaCatched(Path mediaFile) {\r
                Path catchedFile = createMediaCathFilePath(mediaFile);\r
-               return catchedFile.toFile().exists();\r
+               return Files.exists(catchedFile);\r
        }\r
 \r
        public static boolean isMetadataExists(String filePath, String fileName) throws IOException {\r
                boolean result = false;\r
                String metadataFileName = fileName + DOT_JSON;\r
                Path metadataPath = Paths.get(filePath, STATUSFOLDER, metadataFileName);\r
-               result = metadataPath.toFile().exists();\r
+               result = Files.exists(metadataPath);\r
                return result;\r
        }\r
 \r
        public static void notifyRecipient(Path escortFile, Logger logger, Message msg) {\r
-               if (escortFile.toFile().exists()) {\r
+               if (Files.exists(escortFile)) {\r
                        try {\r
                                BasicDBObject downloadable = EscortFiles.decode(escortFile);\r
                                String recipientKey = "recipient";\r