Update Path.java

pull/137/head
FongMi 3 years ago
parent ab909b50e6
commit edce5a67da
  1. 5
      catvod/src/main/java/com/github/catvod/utils/Path.java

@ -111,8 +111,9 @@ public class Path {
}
public static File local(String path) {
File file = new File(path.replace("file:/", root().getAbsolutePath()));
return file.exists() ? file : new File(path.replace("file:/", ""));
File file1 = new File(path.replace("file:/", ""));
File file2 = new File(path.replace("file:/", rootPath()));
return file1.exists() ? file1 : file2.exists() ? file2 : new File(path);
}
public static String asset(String fileName) {

Loading…
Cancel
Save