mirror of
https://github.com/home-assistant/core.git
synced 2025-06-09 07:37:06 +00:00

* Add config flow to local_file * Small mods * Add/fix tests * Fix * slug * Fix strings * Mod strings
11 lines
221 B
Python
11 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
|