pymensago/serverconn.py
def rmdir(conn: ServerConnection, path: str) -> RetVal:
	'''Removes a directory. If recursive is True, all files and subdirectories are also deleted.'''

	request = {
		'Action' : 'RMDIR',
		'Data' : {
			'Path': path
		}
	}
	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()
Removes a directory. If recursive is True, all files and subdirectories are also deleted.
Removes a directory. If recursive is True, all files and subdirectories are also deleted.
Removes a directory . If recursive is True all files and subdirectories are also deleted .
def rmdir(conn: ServerConnection, path: str) -> RetVal:
	request = {
		'Action' : 'RMDIR',
		'Data' : {
			'Path': path
		}
	}
	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 rmdir ( conn : ServerConnection , path : str ) -> RetVal : request = { 'Action' : 'RMDIR' , 'Data' : { 'Path' : path } } 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 ( )
Removes a directory.
Removes a directory .
'''Removes a directory. If recursive is True, all files and subdirectories are also deleted.'''
conn
ServerConnection
path
str