pull/301/head
FongMi 2 years ago
parent 7ac3f2bba4
commit 7c1dba6cf7
  1. 11
      catvod/src/main/java/com/github/catvod/utils/Path.java

@ -192,17 +192,8 @@ public class Path {
public static File create(File file) throws Exception {
try {
if (!file.exists()) file.createNewFile();
if (!file.canWrite()) file.setWritable(true);
return chmod(file);
} catch (Exception e) {
e.printStackTrace();
return file;
}
}
public static File chmod(File file) {
try {
if (!file.exists()) file.createNewFile();
Shell.exec("chmod 777 " + file);
return file;
} catch (Exception e) {

Loading…
Cancel
Save