Fix resuming previous rips

Thanks to Freso for testing.

command/cd: Only call makedirs when dir does not exist
common/checksum: Support flac input files

Fixes #136
This commit is contained in:
Merlijn Wajer
2018-01-26 22:18:24 +01:00
parent a34942e38d
commit 6bd389b7b1
3 changed files with 21 additions and 9 deletions

View File

@@ -338,8 +338,9 @@ Log files will log the path to tracks relative to this directory.
else:
sys.stdout.write("output directory %s already exists\n" %
dirname.encode('utf-8'))
print("creating output directory %s" % dirname.encode('utf-8'))
os.makedirs(dirname)
else:
print("creating output directory %s" % dirname.encode('utf-8'))
os.makedirs(dirname)
# FIXME: turn this into a method