mirror of
https://github.com/cooperhammond/irs.git
synced 2024-11-09 18:48:33 +00:00
Fixed bug if ~/Music folder doesn't exist
This commit is contained in:
parent
df86541d62
commit
7fed83b8d4
|
@ -44,6 +44,8 @@ class Ripper:
|
|||
if parse_directory(self) != None:
|
||||
for index, loc in enumerate(locations):
|
||||
new_file_name = parse_directory(self) + "/" + loc
|
||||
if not os.path.exists(parse_directory(self)):
|
||||
os.makedirs(parse_directory(self))
|
||||
os.rename(loc, new_file_name)
|
||||
locations[index] = new_file_name
|
||||
# I'd just go on believing that code this terrible doesn't exist.
|
||||
|
|
Loading…
Reference in a new issue