def file_move(session, dc_ref, src_file, dst_file):
 LOG.debug('Moving file from %(src)s to %(dst)s.', {'src': src_file, 'dst': dst_file})
 vim = session.vim
 move_task = session._call_method(vim, 'MoveDatastoreFile_Task', vim.service_content.fileManager, sourceName=str(src_file), sourceDatacenter=dc_ref, destinationName=str(dst_file), destinationDatacenter=dc_ref)
 session._wait_for_task(move_task)
 LOG.debug('File moved')

def file_move ( session , dc_ref , src_file , dst_file ) : LOG . debug ( 'Moving file from %(src)s to %(dst)s.' , { 'src' : src_file , 'dst' : dst_file } ) vim = session . vim move_task = session . _call_method ( vim , 'MoveDatastoreFile_Task' , vim . service_content . fileManager , sourceName = str ( src_file ) , sourceDatacenter = dc_ref , destinationName = str ( dst_file ) , destinationDatacenter = dc_ref ) session . _wait_for_task ( move_task ) LOG . debug ( 'File moved' )
moves the source file or folder to the destination .