class_docstr: LocalFileSystem wrapper to exclude files according to patterns.
  
  Args:
      root_path: Root path to strip when matching with the exclude pattern.
          Ex: root_path="/tmp/a/b/c", exclude=["*a*"], will exclude
          /tmp/a/b/c/_a_.txt but not ALL of /tmp/a/*.
      exclude: List of patterns that are applied to files returned by
          ``self.find()``. If a file path matches this pattern, it will
          be excluded.
class_docstr_tok: ["LocalFileSystem","wrapper","to","exclude","files","according","to","patterns",".","Args",":","root_path",":","Root","path","to","strip","when","matching","with","the","exclude","pattern",".","Ex",":","root_path=","''","\/tmp\/a\/b\/c","''",",","exclude=","[","``","*","a","*","''","]",",","will","exclude","\/tmp\/a\/b\/c\/_a_.txt","but","not","ALL","of","\/tmp\/a\/","*",".","exclude",":","List","of","patterns","that","are","applied","to","files","returned","by","``","self.find","(",")","``",".","If","a","file","path","matches","this","pattern",",","it","will","be","excluded","."]
docstr: Call parent find() and exclude from result.
docstr_tok: ["Call","parent","find","(",")","and","exclude","from","result","."]
code: def find(
      self, path, maxdepth=None, withdirs=False, detail=False, **kwargs
  ):
      """Call parent find() and exclude from result."""
      paths = super().find(
          path,
          maxdepth=maxdepth,
          withdirs=withdirs,
          detail=detail,
          **kwargs,
      )
      if detail:
          return {
              path: out
              for path, out in paths.items()
              if not self._should_exclude(path)
          }
      else:
          return [
              path for path in paths if not self._should_exclude(path)
          ]
  
imports: import dataclasses
  import fnmatch
  import logging
  import os
  import shutil
  from pathlib import Path
  from typing import TYPE_CHECKING, Callable, Dict, List, Optional, Tuple, Type, Union
  from ray._private.storage import _get_storage_uri
  from ray.air._internal.filelock import TempFileLock
  from ray.train._internal.syncer import SyncConfig, Syncer, _BackgroundSyncer
  from ray.train.constants import _get_defaults_results_dir
label_desc: Use image node_id 4 for calling the _ExcludingLocalFilesystem obj's underlying member method code with example usage: obj.find(path, maxdepth, withdirs, detail) and returns: unknown, unknown