//strFile 为文件名称 返回true为存在
public boolean fileIsExists(String strFile) {
try {
File f=new File(strFile);
if(f.exists()) {
return true;
}else{
return false;
}
} catch (Exception e) {
return false;
}
}
Android 判断目录下文件是否存在
最新推荐文章于 2024-03-04 08:41:33 发布