def knows_annex(path):
    'Returns whether at a given path there is information about an annex\n\n    It is just a thin wrapper around GitRepo.is_with_annex() classmethod\n    which also checks for `path` to exist first.\n\n    This includes actually present annexes, but also uninitialized ones, or\n    even the presence of a remote annex branch.\n    '
    from os.path import exists
    if (not exists(path)):
        lgr.debug("No annex: test path {0} doesn't exist".format(path))
        return False
    from datalad.support.gitrepo import GitRepo
    return GitRepo(path, init=False, create=False).is_with_annex()
Returns whether at a given path there is information about an annex

It is just a thin wrapper around GitRepo.is_with_annex() classmethod
which also checks for `path` to exist first.

This includes actually present annexes, but also uninitialized ones, or
even the presence of a remote annex branch.
def knows_annex(path):
    'Returns whether at a given path there is information about an annex\n\n    It is just a thin wrapper around GitRepo.is_with_annex() classmethod\n    which also checks for `path` to exist first.\n\n    This includes actually present annexes, but also uninitialized ones, or\n    even the presence of a remote annex branch.\n    '
    from os.path import exists
    if (not exists(path)):
        lgr.debug("No annex: test path {0} doesn't exist".format(path))
        return False
    from datalad.support.gitrepo import GitRepo
    return GitRepo(path, init=False, create=False).is_with_annex()