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

index 077ce60ddf6751817f5e554ff6afb72b2b8c0048..85962ca9ecd463c026997e22cada2f1ae6b839bd 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