File existsFile = new File( filePath + filepath);
if (!existsFile.exists()) {
return new PublicResult<>(PublicResultConstant.ERROR, "对不起在该目录下暂时未找到该对应文件");
}
主要就说这两句 filePath + filepath 是文件地址 if判断是否存在
File existsFile = new File( filePath + filepath);
if (!existsFile.exists()) {
return new PublicResult<>(PublicResultConstant.ERROR, "对不起在该目录下暂时未找到该对应文件");
}
主要就说这两句 filePath + filepath 是文件地址 if判断是否存在