Skip to content

Commit

Permalink
Fixed typo in force_replace
Browse files Browse the repository at this point in the history
  • Loading branch information
seasnak authored Feb 11, 2022
1 parent 1c42f43 commit f23020a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bing_image_downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f23020a

Please sign in to comment.