Fix sense of file_is_unreadable()

This commit is contained in:
Keith Edmunds 2023-03-12 18:38:00 +00:00
parent ee64a4a035
commit 019bc87eb0

View File

@ -61,9 +61,9 @@ def file_is_unreadable(path: Optional[str]) -> bool:
""" """
if not path: if not path:
return False return True
return os.access(path, os.R_OK) return not os.access(path, os.R_OK)
def get_audio_segment(path: str) -> Optional[AudioSegment]: def get_audio_segment(path: str) -> Optional[AudioSegment]: