fix file names
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 24 May 2008 11:25:24 +0000 (13:25 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 24 May 2008 11:25:24 +0000 (13:25 +0200)
src/net/pterodactylus/jsite/project/Project.java

index 4444a84..51ec2d3 100644 (file)
@@ -230,11 +230,10 @@ public class Project extends AbstractBean {
                if (!currentDirectory.isDirectory()) {
                        return;
                }
-               
                for (File file: currentDirectory.listFiles()) {
-                       String fileName = currentPath + File.separatorChar + file.getName();
+                       String fileName = currentPath + file.getName();
                        if (file.isDirectory()) {
-                               scanPath(fileName, entries);
+                               scanPath(fileName + File.separatorChar, entries);
                                continue;
                        }
                        PhysicalEntry entry = new PhysicalEntry();