def METHOD_NAME(self, dir_path, filters=None):
    for dirpath, dirnames, filenames in os.walk(dir_path):
        for f in filenames:
            if filters is not None and \
                    os.path.splitext(f)[1] not in filters:
                continue
            fn = os.path.join(dirpath, f)
            if os.path.islink(fn):
                continue
            if not os.path.isfile(fn):
                continue
            self.relocate_file(fn)
        if not self.recursive:
            break