code: def get_dir(self, path):
          
          try:
              longest = max(m for m in self.mounts if path.startswith(m))
              return self.mounts[longest]
          except ValueError:
              return None
docs: Record: returns the Record object that contains the given path.
  
          This finds the most specific mount path that contains the given path.