奇怪的文件判断
我在main函数中调用
public static boolean FileExist2(String path, String fname) {
File file = new File(path + "\\" + fname);
if (file.exists())
return true;
else
return false;
}
没问题,path=\\Backup01\msgstore\gbc\c12\e26\prompts fname=700.wav
但在jsp中调用这个函数就出来错误结果
而且我在tomcat中引用这个目录出现如下错误
java.lang.IllegalArgumentException: Document base \\Backup01\msgstore does not exist or is not a readable directory
以前一直是好的
不知道为什么