From 858d1b1b568c0689c2c255745ba8862df93f848f Mon Sep 17 00:00:00 2001 From: Albert Pham Date: Sat, 22 Feb 2014 18:20:56 -0800 Subject: [PATCH] Also skip folders starting with . for the server files --- .../java/com/skcraft/launcher/builder/ServerCopyExport.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/skcraft/launcher/builder/ServerCopyExport.java b/src/main/java/com/skcraft/launcher/builder/ServerCopyExport.java index 2eb02f1..fa3da44 100644 --- a/src/main/java/com/skcraft/launcher/builder/ServerCopyExport.java +++ b/src/main/java/com/skcraft/launcher/builder/ServerCopyExport.java @@ -26,7 +26,9 @@ public class ServerCopyExport extends DirectoryWalker { @Override protected DirectoryBehavior getBehavior(String name) { - if (name.equals("_SERVER")) { + if (name.startsWith(".")) { + return DirectoryBehavior.SKIP; + } else if (name.equals("_SERVER")) { return DirectoryBehavior.IGNORE; } else if (name.equals("_CLIENT")) { return DirectoryBehavior.SKIP;