From: Sweidan Omar Date: Mon, 24 Jan 2022 13:53:20 +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=2f2b61a0d06b5ddba43998c48b198227f20964ca;p=mediacube.git git-tfs-id: [tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32882 --- diff --git a/server/-product/production/LOCAL/jobs/steps/SafeDeleteRecursive.java b/server/-product/production/LOCAL/jobs/steps/SafeDeleteRecursive.java index 42c1bf9b..f709f911 100644 --- a/server/-product/production/LOCAL/jobs/steps/SafeDeleteRecursive.java +++ b/server/-product/production/LOCAL/jobs/steps/SafeDeleteRecursive.java @@ -233,7 +233,7 @@ public class SafeDeleteRecursive extends JobStep implements FileVisitor { //Date lastAccesDate = new Date(attr.lastAccessTime().toMillis()); Date createDate = new Date(attr.creationTime().toMillis()); boolean catchedExists = EscortFiles.isMediaCatched(mediaPath); - boolean noMDExists = nomdFile.toFile().exists(); + boolean noMDExists = Files.exists(nomdFile); boolean killdateExists = killDateFiles.size() > 0; //boolean mediaInfoAvailable = canReadMediaInfo(mediaPath); boolean mcArchived = mediaFile != null;