if (!(new File(desPath)).exists()) {
(new File(desPath)).mkdirs();
}
if (!(new File(desPath)).exists()) {
(new File(desPath)).mkdir();
}
注意mkdir()和mkdirs()的区别!
if (!(new File(desPath)).exists()) {
(new File(desPath)).mkdirs();
}
if (!(new File(desPath)).exists()) {
(new File(desPath)).mkdir();
}
注意mkdir()和mkdirs()的区别!