summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/KBCommands.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/KBCommands.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/KBCommands.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/KBCommands.java b/src/main/java/com/keuin/kbackupfabric/KBCommands.java
index d9213c3..9c887fd 100644
--- a/src/main/java/com/keuin/kbackupfabric/KBCommands.java
+++ b/src/main/java/com/keuin/kbackupfabric/KBCommands.java
@@ -90,6 +90,7 @@ public final class KBCommands {
// 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();
+ // TODO: refactor this to use {@link ObjectCollectionSerializer#fromDirectory}
File[] files = getBackupSaveDirectory(server).listFiles(
(dir, name) -> dir.isDirectory() &&
(name.toLowerCase().endsWith(".zip") && name.toLowerCase().startsWith(getBackupFileNamePrefix())
@@ -100,6 +101,7 @@ public final class KBCommands {
Objects.requireNonNull(file);
if (file.getName().toLowerCase().endsWith(".zip"))
return getPrimitiveBackupInformationString(file.getName(), file.length());
+ // TODO: refactor this to use {@link ObjectCollectionSerializer#fromDirectory}
else if (file.getName().toLowerCase().endsWith(".kbi"))
return getIncrementalBackupInformationString(file);
return file.getName();