From 5cbf06525c3a71ff25c5c1f0ebe794396b8d35a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 24 May 2008 13:25:24 +0200 Subject: [PATCH] fix file names --- src/net/pterodactylus/jsite/project/Project.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 2.7.4