Skip to content

Commit 537217a

Browse files
fix
1 parent d313b71 commit 537217a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index_generator/models/entries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def sizeof_fmt(num, suffix='B'):
1414

1515

1616
class Entry(object):
17-
def __init__(self, file, root, base='/', human=False):
17+
def __init__(self, file, root, base=os.path.sep, human=False):
1818
path = root + os.path.sep + file
19-
self.path = base + path.lstrip('.*/')
19+
self.path = base + path.lstrip('.*' + os.path.sep)
2020
self.name = os.path.basename(path)
2121
self.mime = mimetypes.guess_type(path)[0]
2222
if human:

0 commit comments

Comments
 (0)