Skip to content

Commit

Permalink
Ignore more hidden files when using the local game repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
samschreiber committed Oct 28, 2013
1 parent b49b20e commit 04edbb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/ggp/base/util/game/LocalGameRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private static int getMaxVersionForDirectory(File theDir) {
int maxVersion = 0;
String[] children = theDir.list();
for (String s : children) {
if (s.equals(".svn")) continue;
if (s.startsWith(".")) continue;
if (s.startsWith("v")) {
int nVersion = Integer.parseInt(s.substring(1));
if (nVersion > maxVersion) {
Expand Down Expand Up @@ -252,7 +252,7 @@ private static String readDirectory(File theDirectory) throws IOException {

String[] children = theDirectory.list();
for (int i=0; i<children.length; i++) {
if (children[i].equals(".svn")) continue;
if (children[i].startsWith(".")) continue;
// Get filename of file or directory
response.append("\"");
response.append(children[i]);
Expand Down

0 comments on commit 04edbb6

Please sign in to comment.