* Add config flow to local_file * Small mods * Add/fix tests * Fix * slug * Fix strings * Mod strings
10 lines
221 B
Python
10 lines
221 B
Python
"""Utils for local file."""
|
|
|
|
import os
|
|
|
|
|
|
def check_file_path_access(file_path: str) -> bool:
|
|
"""Check that filepath given is readable."""
|
|
if not os.access(file_path, os.R_OK):
|
|
return False
|
|
return True
|