mercurial/osutil.py
changeset 7301 00d76fa3ffba
parent 7057 094af6eeb7d7
--- a/mercurial/osutil.py	Sat Nov 01 13:07:24 2008 +0100
+++ b/mercurial/osutil.py	Sat Nov 01 15:15:14 2008 +0300
@@ -26,7 +26,9 @@
       (name, type)
     '''
     result = []
-    prefix = path + os.sep
+    prefix = path
+    if not prefix.endswith(os.sep):
+        prefix += os.sep
     names = os.listdir(path)
     names.sort()
     for fn in names: