CropAssetCopyTool

This commit is contained in:
gexce
2017-08-17 16:32:37 +02:00
parent fbd663142f
commit 1fb31470f3
@@ -162,7 +162,7 @@ public class CropAssetCopyTool {
int num = Integer.parseInt(oldName.substring(oldName.length() - 3)); int num = Integer.parseInt(oldName.substring(oldName.length() - 3));
num++; num++;
newName = oldName.substring(0, oldName.length() - 3) + String.format("%03d", num) + "." newName = oldName.substring(0, oldName.length() - 3) + String.format("%03d", num) + "."
+ FilenameUtils.getExtension(oldName); + FilenameUtils.getExtension(targetFile.getName());
} }
targetFile = new File(targetDir + "\\" + newName); targetFile = new File(targetDir + "\\" + newName);
} }