def set_chmod(path, permissions, report):
 try:
  os.chmod(path, permissions)
 except:
  lpath = path.lower()
  if (report and ('.appledouble' not in lpath) and ('.ds_store' not in lpath)):
   logging.error(T('Cannot change permissions of %s'), clip_path(path))
   logging.info('Traceback: ', exc_info=True)

def set_chmod ( path , permissions , report ) : try : os . chmod ( path , permissions ) except : lpath = path . lower ( ) if ( report and ( '.appledouble' not in lpath ) and ( '.ds_store' not in lpath ) ) : logging . error ( T ( 'Cannot change permissions of %s' ) , clip_path ( path ) ) logging . info ( 'Traceback: ' , exc_info = True )
set permissions on path .