def add(path):
    if (workdir not in Path(os.path.abspath(path)).parents):
        logger.warning('Path {} cannot be archived: not within working directory.'.format(path))
    else:
        f = os.path.relpath(path)
        if (f not in archived):
            archive.add(f)
            archived.add(f)
            logger.info(('archived ' + f))
def add(path):
    if (workdir not in Path(os.path.abspath(path)).parents):
        logger.warning('Path {} cannot be archived: not within working directory.'.format(path))
    else:
        f = os.path.relpath(path)
        if (f not in archived):
            archive.add(f)
            archived.add(f)
            logger.info(('archived ' + f))