def METHOD_NAME(files):
    newfiles = []
    for pathname in files:
        if pathname in ignored_paths:
            continue
        newfiles.append(pathname)
    for i, pathname in enumerate(newfiles):
        if not os.path.isabs(pathname):
            newfiles[i] = os.path.join(args.rootdir, pathname)
    return newfiles