Commit 372c1ebd authored by feihuaduo's avatar feihuaduo

修复卡组备份路径开头带斜杠的问题

parent 524d5bda
......@@ -282,14 +282,14 @@ public class MyCard {
if (file1.isDirectory()){
deckFileList.addAll(DeckUtil.getDeckList(file1.getAbsolutePath()));
}else {
if (file.getName().endsWith(".ydk"))
// if (file.getName().endsWith(".ydk"))
deckFileList.add(new DeckFile(file1.getAbsolutePath()));
}
}
int deckPathLenght=file.getAbsolutePath().length();
List<String> deckList=new ArrayList<>();
for (DeckFile deckFile:deckFileList){
deckList.add(deckFile.getPath().substring(deckPathLenght));
deckList.add(deckFile.getPath().substring(deckPathLenght+1));
}
return new JSONArray(deckList).toString();
}
......
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