pymensago/serverconn.py
def listfiles(conn: ServerConnection, path='', epochTime=0) -> RetVal:
	'''Obtains a list of entries in the current directory. If epochTime is specified, all files 
	created after the specified time are returned.'''

	request = {
		'Action' : 'LIST',
		'Data' : {}
	}
	if path:
		request['Data']['Path'] = path
	if epochTime > 0:
		request['Data']['Time'] = str(epochTime)
	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().set_value('files', response['Data']['Files'])
Obtains a list of entries in the current directory. If epochTime is specified, all files 
	created after the specified time are returned.
Obtains a list of entries in the current directory. If epochTime is specified, all files
created after the specified time are returned.
Obtains a list of entries in the current directory . If epochTime is specified all files created after the specified time are returned .
def listfiles(conn: ServerConnection, path='', epochTime=0) -> RetVal:
	request = {
		'Action' : 'LIST',
		'Data' : {}
	}
	if path:
		request['Data']['Path'] = path
	if epochTime > 0:
		request['Data']['Time'] = str(epochTime)
	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().set_value('files', response['Data']['Files'])
def listfiles ( conn : ServerConnection , path = '' , epochTime = 0 ) -> RetVal : request = { 'Action' : 'LIST' , 'Data' : { } } if path : request [ 'Data' ] [ 'Path' ] = path if epochTime > 0 : request [ 'Data' ] [ 'Time' ] = str ( epochTime ) 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 ( ) . set_value ( 'files' , response [ 'Data' ] [ 'Files' ] )
Obtains a list of entries in the current directory.
Obtains a list of entries in the current directory .
'''Obtains a list of entries in the current directory. If epochTime is specified, all files 
	created after the specified time are returned.'''
conn
ServerConnection
path
epochTime