Browse Source

Only skip if the dest did not exist

pull/108/head
Oliverpool 9 years ago
parent
commit
c2bd2db84c
  1. 5
      patacrep/songs/convert/__main__.py

5
patacrep/songs/convert/__main__.py

@ -58,9 +58,10 @@ if __name__ == "__main__":
song = song_parsers[source]("", file, DEFAULT_CONFIG)
try:
destname = "{}.{}".format(".".join(file.split(".")[:-1]), dest)
if os.path.exists(destname) and not remember:
dest_exists = os.path.exists(destname)
if dest_exists and not remember:
overwrite, remember = confirm(destname)
if not overwrite:
if dest_exists and not overwrite:
continue
converted = song.render(dest)
with open(destname, "w") as destfile:

Loading…
Cancel
Save