mirror of
https://github.com/cooperhammond/irs.git
synced 2024-12-22 17:35:28 +00:00
Merge branch 'master' of https://github.com/kepoorhampond/irs
This commit is contained in:
commit
e4d97753b3
|
@ -44,6 +44,8 @@ class Ripper:
|
||||||
if parse_directory(self) != None:
|
if parse_directory(self) != None:
|
||||||
for index, loc in enumerate(locations):
|
for index, loc in enumerate(locations):
|
||||||
new_file_name = parse_directory(self) + "/" + loc
|
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)
|
os.rename(loc, new_file_name)
|
||||||
locations[index] = new_file_name
|
locations[index] = new_file_name
|
||||||
# I'd just go on believing that code this terrible doesn't exist.
|
# I'd just go on believing that code this terrible doesn't exist.
|
||||||
|
|
Loading…
Reference in a new issue