pymensago/serverconn.py
def mkdir(conn: ServerConnection, path: str, encpath: CryptoString) -> RetVal:
	'''Creates one or more directories. The command ensures that the directory
	exists, creating any parent directories as needed.
	
	Parameters:
	  * path: (str) the server-side path
	  * encpath: (CryptoString) the encrypted client-side path
	
	Returns:
	  * None
	
	Notes:
	The encpath parameter contains the user-facing path, whereas path contains
	the corresponding server-side path which contains no identifying information.
	'''

	if not isinstance(encpath, CryptoString):
		return RetVal(ErrBadType)
	
	if not path or not encpath.is_valid():
		return RetVal(ErrBadValue)
	
	request = {
		'Action' : 'MKDIR',
		'Data' : {
			'Path': path,
			'ClientPath': encpath.as_string()
		}
	}
	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()
Creates one or more directories. The command ensures that the directory
	exists, creating any parent directories as needed.
	
	Parameters:
	  * path: (str) the server-side path
	  * encpath: (CryptoString) the encrypted client-side path
	
	Returns:
	  * None
	
	Notes:
	The encpath parameter contains the user-facing path, whereas path contains
	the corresponding server-side path which contains no identifying information.
	
Creates one or more directories. The command ensures that the directory
exists, creating any parent directories as needed.
Creates one or more directories . The command ensures that the directory exists creating any parent directories as needed .
def mkdir(conn: ServerConnection, path: str, encpath: CryptoString) -> RetVal:
	if not isinstance(encpath, CryptoString):
		return RetVal(ErrBadType)
	if not path or not encpath.is_valid():
		return RetVal(ErrBadValue)
	request = {
		'Action' : 'MKDIR',
		'Data' : {
			'Path': path,
			'ClientPath': encpath.as_string()
		}
	}
	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 mkdir ( conn : ServerConnection , path : str , encpath : CryptoString ) -> RetVal : if not isinstance ( encpath , CryptoString ) : return RetVal ( ErrBadType ) if not path or not encpath . is_valid ( ) : return RetVal ( ErrBadValue ) request = { 'Action' : 'MKDIR' , 'Data' : { 'Path' : path , 'ClientPath' : encpath . as_string ( ) } } 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 ( )
Creates one or more directories.
Creates one or more directories .
'''Creates one or more directories. The command ensures that the directory
	exists, creating any parent directories as needed.
	
	Parameters:
	  * path: (str) the server-side path
	  * encpath: (CryptoString) the encrypted client-side path
	
	Returns:
	  * None
	
	Notes:
	The encpath parameter contains the user-facing path, whereas path contains
	the corresponding server-side path which contains no identifying information.
	'''
None
conn
ServerConnection
path
str
encpath
CryptoString
* path
(str) the server-side path
( str ) the server - side path
* encpath
(CryptoString) the encrypted client-side path
( CryptoString ) the encrypted client - side path