Commit e5872ecd authored by fallenstardust's avatar fallenstardust

fix copydir

不对textures再进行备份
parent 99344bde
......@@ -262,7 +262,7 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> {
//复制原目录文件
FileUtils.copyDir(ORI_DECK, mSettings.getDeckDir(), false);
FileUtils.copyDir(ORI_REPLAY, resPath + "/" + Constants.CORE_REPLAY_PATH, false);
FileUtils.copyDir(ORI_TEXTURES, mSettings.getCoreSkinPath(), true);
//FileUtils.copyDir(ORI_TEXTURES, mSettings.getCoreSkinPath(), true);
//FileUtils.copyDir(ORI_PICS, mSettings.getCardImagePath(), false);
han.sendEmptyMessage(0);
......
......@@ -177,6 +177,9 @@ public class FileUtils {
//文件名称列表
String[] filePath = file.list();
if (filePath == null)
return;
if (!(new File(newPath)).exists()) {
(new File(newPath)).mkdir();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment