mirror of https://gitlab.com/bashrc2/epicyon
Check that media file exists
parent
2e552bb17c
commit
e9d49c91b0
4
media.py
4
media.py
|
@ -54,6 +54,10 @@ def removeMetaData(imageFilename: str, outputFilename: str) -> None:
|
|||
|
||||
|
||||
def _isMedia(imageFilename: str) -> bool:
|
||||
"""Is the given file a media file?
|
||||
"""
|
||||
if not os.path.isfile(_isMedia):
|
||||
return False
|
||||
permittedMedia = getMediaExtensions()
|
||||
for m in permittedMedia:
|
||||
if imageFilename.endswith('.' + m):
|
||||
|
|
Loading…
Reference in New Issue