This commit is contained in:
buthed010203
2020-12-10 12:18:11 -05:00
committed by GitHub
parent 0f8304674f
commit b3beb92557

View File

@@ -50,7 +50,7 @@ public class BeControl{
Fi dest = Fi.get(System.getProperty("becopy"));
Fi self = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
self.parent().findAll(f -> f != self).forEach(Fi::delete);
for(Fi file : self.parent().findAll(f -> !f.equals(self))) file.delete();
self.copyTo(dest);
}catch(Throwable e){