code: def get_path(self, obj=None):
          
          if obj is None:
              obj = self._obj
          chunks = []
          for e in self._elements:
              d = e.get_dir(obj)
              if d is not None:
                  chunks.append(d)
          path = os.path.join(*chunks)
          return os.path.normpath(path)
docs: Return the path (excluding the filename)
  
          :param obj: the fileinfo with information. If None, this will use the stored object of JB_File
          :type obj: :class:`FileInfo`
          :returns: the path to the file
          :rtype: str
          :raises: None