From: David ‘Bombe’ Roden Date: Sat, 24 May 2008 11:25:24 +0000 (+0200) Subject: fix file names X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5cbf06525c3a71ff25c5c1f0ebe794396b8d35a4;p=jSite2.git fix file names --- diff --git a/src/net/pterodactylus/jsite/project/Project.java b/src/net/pterodactylus/jsite/project/Project.java index 4444a84..51ec2d3 100644 --- a/src/net/pterodactylus/jsite/project/Project.java +++ b/src/net/pterodactylus/jsite/project/Project.java @@ -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();