def METHOD_NAME(self, root, rel_path, depth):
    # Check if excluded
    basename = os.path.basename(rel_path)
    if basename in self.exclude_list:
        return
    filepath = os.path.join(root, rel_path)
    s = os.lstat(filepath)
    identifier = (s.st_ino, s.st_dev)
    # We're hitting a hardlink or symlink of an excluded lib, no need to parse.
    if identifier in self.libraries or identifier in self.excluded_through_symlink:
        return
    # Register the file if it's a shared lib that needs to be patched.
    if is_shared_library_elf(filepath):
        self.libraries[identifier] = rel_path