Skip to content

Commit

Permalink
chtor: fix for data paths that actually contain '{}'
Browse files Browse the repository at this point in the history
  • Loading branch information
pyroscope committed Jun 5, 2021
1 parent ebab5e6 commit af82da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyrocore/scripts/chtor.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def mainloop(self):
# Add fast-resume data?
if self.options.hashed:
datadir = self.options.hashed
if '{}' in datadir:
if '{}' in datadir and not os.path.exists(datadir):
datadir = datadir.replace('{}', metainfo["info"]["name"])
try:
metafile.add_fast_resume(metainfo, datadir)
Expand Down

0 comments on commit af82da8

Please sign in to comment.