pull/149/head
FongMi 2 years ago
parent 29a0014189
commit b4b56d9865
  1. 3
      catvod/src/main/java/com/github/catvod/utils/Github.java
  2. 5
      catvod/src/main/java/com/github/catvod/utils/Path.java

@ -80,7 +80,6 @@ public class Github {
private static void moveExist(File path, File file) {
File temp = new File(path, file.getName());
if (temp.exists()) Path.copy(temp, file);
if (temp.exists()) Path.clear(temp);
if (temp.exists()) Path.move(temp, file);
}
}

@ -173,6 +173,11 @@ public class Path {
}
}
public static void move(File in, File out) {
copy(in, out);
clear(in);
}
public static void copy(File in, File out) {
try {
copy(new FileInputStream(in), new FileOutputStream(out));

Loading…
Cancel
Save