code: def path_context(self, path):
          
          prefix = os.path.commonprefix([path, self._path])
          relative_path = path[len(prefix) :]
          relative_path = relative_path.strip(os.sep)
          attrs = self.CONTEXT_ATTRS
          for i, elt in enumerate(relative_path.split(os.sep)):
              yield attrs[i], elt
          yield 'path', path
docs: Build of dictionary of fields extracted from
          the given path