def METHOD_NAME(self, path):
    _, ext = os.path.splitext(path)
    return (
        octoprint.filemanager.valid_file_type(path)
        and not octoprint.util.is_hidden_path(path)
        and ext != "failed"
    )