wait to finish of mockdata
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user