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

index e5040995c537550e02998fbd0d0f629f40ae70e4..3216b8007b68aa48be312a018930034e2b5b4c63 100644 (file)
@@ -195,7 +195,7 @@ public class EscortFiles {
                String killDateFileName = composeKillDateFileName(fileName, days);\r
                Path killDatePath = Paths.get(filePath, STATUSFOLDER, killDateFileName);\r
                if (Files.exists(killDatePath))\r
-                       logger.warn(marker, "Az '{}' állomány már létezik.", killDatePath);\r
+                       logger.warn(marker, "A(z) '{}' állomány már létezik.", killDatePath);\r
                else\r
                        Files.createFile(killDatePath);\r
        }\r
@@ -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