class_docstr: Wrap a FileSystem instance as a mutable wrapping.
  The keys of the mapping become files under the given root, and the
  values (which must be bytes) the contents of those files.
  
  Parameters
  ----------
  root: string
      prefix for all the files
  fs: FileSystem instance
  check: bool (=True)
      performs a touch at the location, to check for write access.
class_docstr_tok: ["Wrap","a","FileSystem","instance","as","a","mutable","wrapping",".","The","keys","of","the","mapping","become","files","under","the","given","root",",","and","the","values","(","which","must","be","bytes",")","the","contents","of","those","files",".","Parameters","--","--","--","--","--","root",":","string","prefix","for","all","the","files","fs",":","FileSystem","instance","check",":","bool","(","=True",")","performs","a","touch","at","the","location",",","to","check","for","write","access","."]
code: def __init__(self, root, fs, check=False, create=False):
      self.fs = fs
      self.root = self._get_path(fs, root)
      if create:
          if not self.fs.exists(root):
              self.fs.mkdir(root)
      if check:
          if not self.fs.exists(root):
              raise ValueError(
                  f"Path {root} does not exist. Create with the ``create=True`` keyword"
              )
          with self.fs.open(fs.pathsep.join([root, "a"]), "w"):
              pass
          self.fs.rm(fs.pathsep.join([root, "a"]))
  
imports: from collections.abc import MutableMapping
  from urllib.parse import urlparse
  from .local import LocalFileSystem
label_desc: Use image node_id 1 to create a new FSMap object from inherited base classes: MutableMapping with example: obj = FSMap(root, fs, check, create)