From 274ab54416d9cc0fcf56019084cf5615f45178a7 Mon Sep 17 00:00:00 2001 From: Damon Getsman Date: Tue, 3 Jul 2018 17:46:00 -0500 Subject: [PATCH] Misc; mostly cues to myself for when I'm able to work better. --- .classpath | 2 +- src/MyArchive.java | 11 +++++++++++ src/Settings.java | 17 +++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/Settings.java diff --git a/.classpath b/.classpath index a6c15a2..c0b3816 100644 --- a/.classpath +++ b/.classpath @@ -2,6 +2,6 @@ - + diff --git a/src/MyArchive.java b/src/MyArchive.java index 9990007..13e5784 100644 --- a/src/MyArchive.java +++ b/src/MyArchive.java @@ -112,6 +112,17 @@ public HashMap getEntryHash() throws Exception { return entryData; } + /* + * This is the method that we're going to have to use for things to work + * as I originally intended. Obviously we can't recurse into the sub- + * archives if we don't unroll things first. + * + * Of course we _could_ set an option to minimize space used, if only a + * listing of all recursed contents are required; it could be implemented + * by selectively unrolling only internal archives, leaving non-archives + * alone. Then ad infinitum, of course, with the recursion. + * + */ public void unroll() throws Exception { ArchiveEntry entry; File currentFile, parentFile; diff --git a/src/Settings.java b/src/Settings.java new file mode 100644 index 0000000..83114c1 --- /dev/null +++ b/src/Settings.java @@ -0,0 +1,17 @@ +/** + * + */ + +/** + * @author sprite + * + */ +public class Settings { + //here's what we'll be implementing right away + public Boolean verbose; + public Boolean minimizeSpaceUsage; + + //here's schitt to work with in the future + public String workingDirectory; + +}