From ecc1b42841274059674632c26c6132c3a3744d24 Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Fri, 2 Feb 2018 14:21:35 +0530 Subject: [PATCH] minor mistake corrected in downloader.py --- PYTHON/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PYTHON/downloader.py b/PYTHON/downloader.py index 0a532c8..13f0204 100644 --- a/PYTHON/downloader.py +++ b/PYTHON/downloader.py @@ -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)