def update_mtime(path):
 try:
  execute('touch', '-c', path, run_as_root=True)
 except processutils.ProcessExecutionError as exc:
  LOG.warning(_LW('Failed to update mtime on path %(path)s. Error: %(error)s'), {'path': path, 'error': exc})

def update_mtime ( path ) : try : execute ( 'touch' , '-c' , path , run_as_root = True ) except processutils . ProcessExecutionError as exc : LOG . warning ( _LW ( 'Failed to update mtime on path %(path)s. Error: %(error)s' ) , { 'path' : path , 'error' : exc } )
touch a file without being the owner .