dataguy.validate_file_path

validate_file_path(file_path)[source]

Validate that a file exists and is readable.

Args:

file_path (str): Path to the file to validate

Returns:

bool: True if file exists and is readable

Raises:

FileNotFoundError: If file doesn’t exist PermissionError: If file isn’t readable