From: Sweidan Omar Date: Mon, 10 Jan 2022 14:14:05 +0000 (+0000) Subject: git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube... X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=267ff8533612c55a69348c0bb7cdf5be6b47fca3;p=mediacube.git git-tfs-id: [tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32701 --- diff --git a/server/-product/production/AMC/jobs/steps/PeableBeachMissingMaterialCheckerStep.210604 b/server/-product/production/AMC/jobs/steps/PeableBeachMissingMaterialCheckerStep.210604 index 3b1a1fa0..827ebcda 100644 --- a/server/-product/production/AMC/jobs/steps/PeableBeachMissingMaterialCheckerStep.210604 +++ b/server/-product/production/AMC/jobs/steps/PeableBeachMissingMaterialCheckerStep.210604 @@ -196,8 +196,8 @@ public class PeableBeachMissingMaterialCheckerStep extends JobStep { Path outputPath = null; try { outputPath = Paths.get(escortStoreUri.toString(true)); - boolean exsists = statusFileExists(outputPath, fileName); - if (exsists) + boolean exists = statusFileExists(outputPath, fileName); + if (exists) return; EscortFiles.createMetadata(outputPath.toString(), escortFileName, downloadable.toPrettyString("")); logger.info(getMarker(), "Status file created {}", escortFileName); @@ -208,18 +208,18 @@ public class PeableBeachMissingMaterialCheckerStep extends JobStep { } private boolean statusFileExists(Path outputPath, String fileName) { - boolean exsists = false; + boolean exists = false; Path statusPath = Paths.get(outputPath.toString(), EscortFiles.STATUSFOLDER); try (DirectoryStream p = Files.newDirectoryStream(statusPath, "*" + fileName + EscortFiles.DOT_JSON)) { if (p.iterator().hasNext()) { logger.info(getMarker(), "Status file for {} already exists", fileName); - exsists = true; + exists = true; } } catch (Exception e1) { logger.error(getSessionMarker(), e1.getMessage()); } - return exsists; + return exists; } }