7 lines
159 B
Python
7 lines
159 B
Python
|
from pathlib import Path
|
||
|
|
||
|
VALID_FILE_FORMATS = [".jpg",".jpeg",".png"]
|
||
|
|
||
|
|
||
|
def has_valid_suffix(file):
|
||
|
return Path(file).suffix.lower() in VALID_FILE_FORMATS
|