@classmethod<EOL><INDENT>def is_prefix(cls, path):<DEDENT>
lagofile = paths.Paths(path).prefix_lagofile()<EOL>return os.path.isfile(lagofile)<EOL>
Check if a path is a valid prefix

Args:
    path(str): path to be checked

Returns:
    bool: True if the given path is a prefix