def _remap_dict_shared(workdir, new_workdir, args):
    """Prepare a remap dictionary with directories we should potential copy files from.
    """
    ignore_keys = set(["algorithm"])
    out = {workdir: new_workdir}
    def _update_remap(fname, context, remap_dict):
        """Updated list of directories we should potentially be remapping in.
        """
        if not fname.startswith(tuple(out.keys())) and context and ignore_keys not in context[0]:
            dirname = os.path.normpath(os.path.dirname(fname))
            local_dir = utils.safe_makedir(os.path.join(new_workdir, "external", str(len(out))))
            out[dirname] = local_dir
    remap.walk_files(args, _update_remap, {})
    return out
dataset/ETHPy150Open chapmanb/bcbio-nextgen-vm/bcbiovm/ship/reconstitute.py/_remap_dict_shared/swapped operands of `not in`