def dirinfo(path, opts=None):
 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

def dirinfo ( path , opts = None ) : 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
return information on a directory located on the moose cli example: .