pull/137/head
FongMi 3 years ago
parent 38ed224dd2
commit 5039ac4335
  1. 2
      app/src/main/java/com/fongmi/android/tv/server/Nano.java
  2. 2
      catvod/src/main/java/com/github/catvod/utils/Path.java

@ -167,7 +167,7 @@ public class Nano extends NanoHTTPD {
}
private String getParent(File root) {
return root.equals(Path.root()) ? "." : root.getParent().replace(Path.rootPath() + File.separator, "").replace(Path.rootPath(), "");
return root.equals(Path.root()) ? "." : root.getParent().replace(Path.rootPath(), "");
}
private String listFiles(File root) {

@ -22,7 +22,7 @@ import java.util.zip.ZipFile;
public class Path {
private static File check(File file) {
if (!file.exists()) file.mkdir();
if (!file.exists()) file.mkdirs();
return file;
}

Loading…
Cancel
Save