need to actually return values, whould've thought
This commit is contained in:
parent
9c6328659f
commit
2d1add4f3e
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue