def METHOD_NAME(path):
    for root, dirs, files in os.walk(path):
        for name in files:
            file = os.path.join(root, name)
            if not os.path.islink(file):
                build_id = build_id_for(file)
                if build_id and build_id in trace_build_ids:
                    dir = "%s/debug/.build-id/%s"%(trace_dir, build_id[:2])
                    mkdir_p(dir)
                    copy_file(file, "%s/%s.debug"%(dir, build_id[2:]))
                    altref = find_altref(file)
                    if altref:
                        altref = altref.decode('utf-8')
                        altref_file = os.path.join(os.path.dirname(file), altref)
                        copy_file(altref_file, "%s/%s.sup"%(dir, build_id[2:]))
                        if altref.startswith("../../../.dwz/"):
                            mkdir_p("%s/.dwz"%trace_dir)
                            src = "../debug/.build-id/%s/%s.sup"%(build_id[:2], build_id[2:])
                            create_link(src, "%s/.dwz/%s"%(trace_dir, altref[14:]))
                        elif altref.startswith("../../.dwz/"):
                            mkdir_p("%s/debug/.dwz"%trace_dir)
                            src = "../.build-id/%s/%s.sup"%(build_id[:2], build_id[2:])
                            create_link(src, "%s/debug/.dwz/%s"%(trace_dir, altref[11:]))
                        elif altref.startswith("../.dwz/"):
                            mkdir_p("%s/debug/.build-id/.dwz"%trace_dir)
                            src = "../%s/%s.sup"%(build_id[:2], build_id[2:])
                            create_link(src, "%s/debug/.build-id/.dwz/%s"%(trace_dir, altref[8:]))