This commit is contained in:
@@ -161,7 +161,7 @@ public class HttpResourceServlet extends HttpServlet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void serRoot(String rootstr) {
|
public void setRoot(String rootstr) {
|
||||||
if (rootstr == null) return;
|
if (rootstr == null) return;
|
||||||
try {
|
try {
|
||||||
this.root = new File(rootstr).getCanonicalFile();
|
this.root = new File(rootstr).getCanonicalFile();
|
||||||
@@ -170,7 +170,7 @@ public class HttpResourceServlet extends HttpServlet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void serRoot(File file) {
|
public void setRoot(File file) {
|
||||||
if (file == null) return;
|
if (file == null) return;
|
||||||
try {
|
try {
|
||||||
this.root = file.getCanonicalFile();
|
this.root = file.getCanonicalFile();
|
||||||
|
|||||||
Reference in New Issue
Block a user