|
|
@ -1,10 +1,8 @@
|
|
|
|
package app;
|
|
|
|
package app;
|
|
|
|
|
|
|
|
|
|
|
|
import javafx.beans.property.StringProperty;
|
|
|
|
|
|
|
|
import javafx.concurrent.Task;
|
|
|
|
import javafx.concurrent.Task;
|
|
|
|
import javafx.fxml.FXML;
|
|
|
|
import javafx.fxml.FXML;
|
|
|
|
import javafx.scene.control.*;
|
|
|
|
import javafx.scene.control.*;
|
|
|
|
import javafx.scene.control.cell.PropertyValueFactory;
|
|
|
|
|
|
|
|
import javafx.scene.text.Text;
|
|
|
|
import javafx.scene.text.Text;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -55,7 +53,7 @@ public class Controller {
|
|
|
|
|
|
|
|
|
|
|
|
Task<Void> loadDirTask = new Task<Void>() {
|
|
|
|
Task<Void> loadDirTask = new Task<Void>() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Void call() throws Exception {
|
|
|
|
public Void call() {
|
|
|
|
|
|
|
|
|
|
|
|
loadDirState.setText("");
|
|
|
|
loadDirState.setText("");
|
|
|
|
calcMd5State.setText("");
|
|
|
|
calcMd5State.setText("");
|
|
|
@ -103,7 +101,7 @@ public class Controller {
|
|
|
|
|
|
|
|
|
|
|
|
Task<Void> delDoubleTask = new Task<Void>() {
|
|
|
|
Task<Void> delDoubleTask = new Task<Void>() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Void call() throws Exception {
|
|
|
|
public Void call() {
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < doubles.size(); i++) {
|
|
|
|
for (int i = 0; i < doubles.size(); i++) {
|
|
|
|
new Execute().execute(new String[]{"rm", doubles.get(i).file.getAbsolutePath()});
|
|
|
|
new Execute().execute(new String[]{"rm", doubles.get(i).file.getAbsolutePath()});
|
|
|
|