summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/KBCommands.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-23 15:44:15 +0800
committerkeuin <[email protected]>2021-01-23 15:44:15 +0800
commit483d91a54912f2c87d6d686184f66a8d091ef9b7 (patch)
treeea1cda511c69bb5efbf938d69060561d7a3d738b /src/main/java/com/keuin/kbackupfabric/KBCommands.java
parent4a1d885afa7217b47d6183488c3dc6537cef05b6 (diff)
Now it will display information after restoring from an incremental backup
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/KBCommands.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/KBCommands.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/KBCommands.java b/src/main/java/com/keuin/kbackupfabric/KBCommands.java
index 9f00790..73b61df 100644
--- a/src/main/java/com/keuin/kbackupfabric/KBCommands.java
+++ b/src/main/java/com/keuin/kbackupfabric/KBCommands.java
@@ -84,6 +84,8 @@ public final class KBCommands {
* @return stat code.
*/
public static int list(CommandContext<ServerCommandSource> context) {
+ // TODO: Show real name and size and etc info for incremental backup
+ // TODO: Show concrete info from metadata for `.zip` backup
MinecraftServer server = context.getSource().getMinecraftServer();
File[] files = getBackupSaveDirectory(server).listFiles(
(dir, name) -> dir.isDirectory() &&
@@ -356,6 +358,7 @@ public final class KBCommands {
* @return stat code.
*/
public static int prev(CommandContext<ServerCommandSource> context) {
+ // FIXME: This breaks after adding incremental backup
try {
// List all backups
MinecraftServer server = context.getSource().getMinecraftServer();