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

index e5040995c537550e02998fbd0d0f629f40ae70e4..d872f6b9f2bc31a427637587e2d41b6f42e71549 100644 (file)
@@ -239,7 +239,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
@@ -251,19 +251,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