code: def dirinfo(path, opts=None):
      '''
      Return information on a directory located on the Moose
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' moosefs.dirinfo /path/to/dir/ [-[n][h|H]]
      '''
      cmd = 'mfsdirinfo'
      ret = {}
      if opts:
          cmd += ' -' + opts
      cmd += ' ' + path
      out = __salt__['cmd.run_all'](cmd, python_shell=False)
  
      output = out['stdout'].splitlines()
      for line in output:
          if not line:
              continue
          comps = line.split(':')
          ret[comps[0].strip()] = comps[1].strip()
      return ref dirinfo(path, opts=None):
      '''
      Return information on a directory located on the Moose
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' moosefs.dirinfo /path/to/dir/ [-[n][h|H]]
      '''
      cmd = 'mfsdirinfo'
      ret = {}
      if opts:
          cmd += ' -' + opts
      cmd += ' ' + path
      out = __salt__['cmd.run_all'](cmd, python_shell=False)
  
      output = out['stdout'].splitlines()
      for line in output:
          if not line:
              continue
          comps = line.split(':')
          ret[comps[0].strip()] = comps[1].strip()
      return ret
docs: Return information on a directory located on the Moose
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' moosefs.dirinfo /path/to/dir/ [-[n][h|H]]