Skip to content

Commit 62e39b2

Browse files
authored
Merge pull request #39 from charleslf2/patch-1
fix the error "isdir"
2 parents 1c42f43 + f957311 commit 62e39b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bing_image_downloader/downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def download(query, limit=100, output_dir='dataset', adult_filter_off=True,
2121
image_dir = Path(output_dir).joinpath(query).absolute()
2222

2323
if force_replace:
24-
if Path.isdir(image_dir):
24+
if Path.is_dir(image_dir):
2525
shutil.rmtree(image_dir)
2626

2727
# check directory and create if necessary

0 commit comments

Comments
 (0)