根路径文件是否存在

来源:互联网 发布:ibm蓝云计算平台 编辑:程序博客网 时间:2024/06/03 20:38
public boolean isCptkFileExist(String productCodeM){

String rootPath = System.getProperty("webapp.root");

String cptkFilePath = rootPath + "/cptk/" + productCodeM + ".html";

return new File(cptkFilePath).exists();
}
0 0
原创粉丝点击