Commit e9616785 authored by fallenstardust's avatar fallenstardust

备份前删除原备份

parent 6b85e12c
...@@ -1188,6 +1188,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte ...@@ -1188,6 +1188,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
} }
private void doBackUpDeck() { private void doBackUpDeck() {
FileUtils.delFile(ORI_DECK);//备份前删除原备份
try { try {
FileUtils.copyDir(mSettings.getDeckDir(), ORI_DECK, true); FileUtils.copyDir(mSettings.getDeckDir(), ORI_DECK, true);
File ydks = new File(ORI_DECK); File ydks = new File(ORI_DECK);
......
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