1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-28 12:57:07 +01:00

Also skip folders starting with . for the server files

This commit is contained in:
Albert Pham 2014-02-22 18:20:56 -08:00
parent f5c3bb48f6
commit 858d1b1b56

View File

@ -26,7 +26,9 @@ public class ServerCopyExport extends DirectoryWalker {
@Override @Override
protected DirectoryBehavior getBehavior(String name) { protected DirectoryBehavior getBehavior(String name) {
if (name.equals("_SERVER")) { if (name.startsWith(".")) {
return DirectoryBehavior.SKIP;
} else if (name.equals("_SERVER")) {
return DirectoryBehavior.IGNORE; return DirectoryBehavior.IGNORE;
} else if (name.equals("_CLIENT")) { } else if (name.equals("_CLIENT")) {
return DirectoryBehavior.SKIP; return DirectoryBehavior.SKIP;