Skip to content

Commit

Permalink
minor mistake corrected in downloader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZER-0-NE authored and pandusonu2 committed May 1, 2018
1 parent 81d3d7c commit ecc1b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PYTHON/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def cd(dir):
Intelligently change directory
"""
if not os.path.exists(dir): # check for an existing path
os.mkdir(path) # make directory if it doesn't exist
os.mkdir(dir) # make directory if it doesn't exist
elif not pathlib.Path(dir).is_dir(): # else check for a clashing filename
print("Error: A file already exists with '" + dir + "' filename")
os.chdir(dir)
Expand Down

0 comments on commit ecc1b42

Please sign in to comment.