from pathlib import Path


def get_local_path(value):
    """Get local path for the value."""
    value = Path(value)
    # Return if exists and a file
    if value.exists() and value.is_file():
        return value
    return ""