diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index bfe629a..94a2962 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -333,10 +333,10 @@ def check_extension(path, exts): return path.suffix.lower() in exts def is_pdf(path): - check_extension(path, ['.pdf']) + return check_extension(path, ['.pdf']) def is_image(path): - check_extension(path, IMAGE_FILE_EXTENSIONS) + return check_extension(path, IMAGE_FILE_EXTENSIONS) def ignoreable(path): return path.name in IGNOREABLE_FILES or check_extension(path, IGNOREABLE_EXTENSIONS)