Skip to content

Commit

Permalink
Fix issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kz26 committed Nov 2, 2016
1 parent adf48a7 commit b4607bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dottorrent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def generate(self, callback=None):
if self.include_md5:
fx['md5sum'] = x[2]['md5sum']
fx['path'] = [y.encode()
for y in x[0].replace(self.path, '')[1:]
for y in x[0].replace(self.path, '', 1)[1:]
.split(os.sep)]
data['info']['files'].append(fx)
data['info']['name'] = self.path.split(os.sep)[-1].encode()
Expand Down

0 comments on commit b4607bc

Please sign in to comment.