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

index 3ed0e4f407e052b00bf7768c9cd1a74e7455ba52..143303a6a28c1bb26ddb9eaf49d9159f3d76cdf2 100644 (file)
@@ -88,7 +88,7 @@ public class CleanupMountedLocationStep extends JobStep implements FileVisitor<P
                        throw new NullPointerException("System is not configured properly, 'sourceFolder' input parameter missing.");\r
                }\r
 \r
-               if (!sourcePath.toFile().exists() || !sourcePath.toFile().isDirectory()) {\r
+               if (!Files.exists(sourcePath) || !Files.isDirectory(sourcePath)) {\r
                        logger.error(marker, "A {} mappa nem létezik.", sourceFolder);\r
                        throw new NullPointerException(String.format("Directory %s not exists.", sourceFolder));\r
                }\r