From f23020a4cc2a3eace6f43926d120c34aaf6d5a47 Mon Sep 17 00:00:00 2001 From: Sasank Madineni Date: Fri, 11 Feb 2022 11:24:26 -0800 Subject: [PATCH] Fixed typo in force_replace --- bing_image_downloader/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bing_image_downloader/downloader.py b/bing_image_downloader/downloader.py index 41789dd..9f77156 100644 --- a/bing_image_downloader/downloader.py +++ b/bing_image_downloader/downloader.py @@ -21,7 +21,7 @@ def download(query, limit=100, output_dir='dataset', adult_filter_off=True, image_dir = Path(output_dir).joinpath(query).absolute() if force_replace: - if Path.isdir(image_dir): + if Path.is_dir(image_dir): shutil.rmtree(image_dir) # check directory and create if necessary