Fix sense of file_is_unreadable()
This commit is contained in:
parent
ee64a4a035
commit
019bc87eb0
@ -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]:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user