pymensago/serverconn.py
def move(conn: ServerConnection, srcfile: str, destdir: str) -> RetVal:
	'''Moves the specified source file to the destination directory'''

	request = {
		'Action' : 'MOVE',
		'Data' : {
			'SourceFile': srcfile,
			'DestDir': destdir
		}
	}
	status = conn.send_message(request)
	if status.error():
		return status

	response = conn.read_response(server_response)
	if response.error():
		return response
	
	if response['Code'] != 200:
		return wrap_server_error(response)
	
	return RetVal()
Moves the specified source file to the destination directory
Moves the specified source file to the destination directory
Moves the specified source file to the destination directory
def move(conn: ServerConnection, srcfile: str, destdir: str) -> RetVal:
	request = {
		'Action' : 'MOVE',
		'Data' : {
			'SourceFile': srcfile,
			'DestDir': destdir
		}
	}
	status = conn.send_message(request)
	if status.error():
		return status
	response = conn.read_response(server_response)
	if response.error():
		return response
	if response['Code'] != 200:
		return wrap_server_error(response)
	return RetVal()
def move ( conn : ServerConnection , srcfile : str , destdir : str ) -> RetVal : request = { 'Action' : 'MOVE' , 'Data' : { 'SourceFile' : srcfile , 'DestDir' : destdir } } status = conn . send_message ( request ) if status . error ( ) : return status response = conn . read_response ( server_response ) if response . error ( ) : return response if response [ 'Code' ] != 200 : return wrap_server_error ( response ) return RetVal ( )
Moves the specified source file to the destination directory
Moves the specified source file to the destination directory
'''Moves the specified source file to the destination directory'''
conn
ServerConnection
srcfile
str
destdir
str