This commit is contained in:
Kepoor Hampond 2017-03-17 23:25:57 -07:00
commit e4d97753b3

View file

@ -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.