From c006032feede199d253acf0ef3eaa5edf5c77515 Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Fri, 21 Jan 2022 08:44:35 +0000 Subject: [PATCH] git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32851 --- .../MEDIAVIVANTIS/jobs/steps/shared/EscortFiles.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/-product/production/MEDIAVIVANTIS/jobs/steps/shared/EscortFiles.java b/server/-product/production/MEDIAVIVANTIS/jobs/steps/shared/EscortFiles.java index e5040995..3216b800 100644 --- a/server/-product/production/MEDIAVIVANTIS/jobs/steps/shared/EscortFiles.java +++ b/server/-product/production/MEDIAVIVANTIS/jobs/steps/shared/EscortFiles.java @@ -195,7 +195,7 @@ public class EscortFiles { String killDateFileName = composeKillDateFileName(fileName, days); Path killDatePath = Paths.get(filePath, STATUSFOLDER, killDateFileName); if (Files.exists(killDatePath)) - logger.warn(marker, "Az '{}' állomány már létezik.", killDatePath); + logger.warn(marker, "A(z) '{}' állomány már létezik.", killDatePath); else Files.createFile(killDatePath); } @@ -239,7 +239,7 @@ public class EscortFiles { public static boolean isCatchedFileExists(Path escortFile) { Path catchedFilePath = Paths.get(escortFile.toString() + DOT_CATCHED); - return catchedFilePath.toFile().exists(); + return Files.exists(catchedFilePath); } /*** @@ -251,19 +251,19 @@ public class EscortFiles { */ public static boolean isMediaCatched(Path mediaFile) { Path catchedFile = createMediaCathFilePath(mediaFile); - return catchedFile.toFile().exists(); + return Files.exists(catchedFile); } public static boolean isMetadataExists(String filePath, String fileName) throws IOException { boolean result = false; String metadataFileName = fileName + DOT_JSON; Path metadataPath = Paths.get(filePath, STATUSFOLDER, metadataFileName); - result = metadataPath.toFile().exists(); + result = Files.exists(metadataPath); return result; } public static void notifyRecipient(Path escortFile, Logger logger, Message msg) { - if (escortFile.toFile().exists()) { + if (Files.exists(escortFile)) { try { BasicDBObject downloadable = EscortFiles.decode(escortFile); String recipientKey = "recipient"; -- 2.54.0