def lchown(path, user, group=None, pgroup=None):
 if group:
  func_name = '{0}.lchown'.format(__virtualname__)
  if (__opts__.get('fun', '') == func_name):
   log.info('The group parameter has no effect when using {0} on Windows systems; see function docs for details.'.format(func_name))
  log.debug('win_file.py {0} Ignoring the group parameter for {1}'.format(func_name, path))
  group = None
 return chown(path, user, group, pgroup, follow_symlinks=False)

def lchown ( path , user , group = None , pgroup = None ) : if group : func_name = '{0}.lchown' . format ( __virtualname__ ) if ( __opts__ . get ( 'fun' , '' ) == func_name ) : log . info ( 'The group parameter has no effect when using {0} on Windows systems; see function docs for details.' . format ( func_name ) ) log . debug ( 'win_file.py {0} Ignoring the group parameter for {1}' . format ( func_name , path ) ) group = None return chown ( path , user , group , pgroup , follow_symlinks = False )
chown a file .