wait to finish of mockdata

This commit is contained in:
zhongchao
2021-06-16 17:28:24 +08:00
parent d54d4f51e2
commit c598b44866
4 changed files with 86 additions and 9 deletions

View File

@@ -27,14 +27,15 @@ import java.io.OutputStreamWriter;
*/
public class FileUtils {
public static boolean createFileDir(String fileDir) {
if (TextUtils.isEmpty(fileDir)) {
return false;
}
try {
File dir = new File(fileDir);
return dir.exists() || dir.mkdir();
if(!dir.exists()){
return dir.mkdirs();
}
return dir.exists();
} catch (Exception e) {
return false;
}