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

index 2b50e30d091e3c79e3d6048d17c1f4aba43c9d81..b2727da25d0fa6e7c011a0461528ab93a5b8987a 100644 (file)
@@ -223,7 +223,7 @@ public class PBQuery {
 \r
                Path template = getSOAPTemplate(GETCUSTOMVIEW);\r
 \r
-               if (!template.toFile().exists())\r
+               if (!Files.exists(template))\r
                        throw new FileNotFoundException(template.toString());\r
                try {\r
                        soap = new String(Files.readAllBytes(template));\r
@@ -276,7 +276,7 @@ public class PBQuery {
 \r
                Path template = getSOAPTemplate(GETMEDIAUSAGEBYUTRANGE);\r
 \r
-               if (!template.toFile().exists())\r
+               if (!Files.exists(template))\r
                        throw new FileNotFoundException(template.toString());\r
 \r
                try {\r
@@ -391,11 +391,11 @@ public class PBQuery {
                boolean found = false;\r
                for (Path subtitleDir : this.subsDirectoriesList) {\r
                        Path source = Paths.get(subtitleDir.toString(), new String[] { subtitleName });\r
-                       if (source.toFile().exists()) {\r
+                       if (Files.exists(source)) {\r
                                found = true;\r
                                logger.info(this.subtitleMarker, "Found missing {}", source);\r
                                Path target = Paths.get(missingSubsRoot.toString(), new String[] { subtitleName });\r
-                               if (target.toFile().exists())\r
+                               if (Files.exists(target))\r
                                        logger.info(this.subtitleMarker, "Missing subtitle {} already exists, overriding", target);\r
                                Files.copy(source, target, new CopyOption[] { StandardCopyOption.REPLACE_EXISTING });\r
                                boolean isContentEquals = Arrays.equals(Files.readAllBytes(source), Files.readAllBytes(target));\r