now 100% less readable
This commit is contained in:
@@ -50,7 +50,7 @@ public class BeControl{
|
|||||||
Fi dest = Fi.get(System.getProperty("becopy"));
|
Fi dest = Fi.get(System.getProperty("becopy"));
|
||||||
Fi self = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
|
Fi self = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
|
||||||
|
|
||||||
for(Fi file : self.parent().findAll(f -> f != self)) file.delete();
|
self.parent().findAll(f -> f != self).forEach(Fi::delete);
|
||||||
|
|
||||||
self.copyTo(dest);
|
self.copyTo(dest);
|
||||||
}catch(Throwable e){
|
}catch(Throwable e){
|
||||||
|
|||||||
Reference in New Issue
Block a user