def file_list( blockchain_id, config_path=CONFIG_PATH, wallet_keys=None ):
config_dir = os.path.dirname(config_path)<EOL>client_config_path = os.path.join(config_dir, blockstack_client.CONFIG_FILENAME )<EOL>proxy = blockstack_client.get_default_proxy( config_path=client_config_path )<EOL>res = blockstack_client.data_list( blockchain_id, wallet_keys=wallet_keys, proxy=proxy )<EOL>if '<STR_LIT:error>' in res:<EOL><INDENT>log.error("<STR_LIT>" % res['<STR_LIT:error>'])<EOL>return {'<STR_LIT:error>': '<STR_LIT>'}<EOL><DEDENT>listing = []<EOL>for rec in res['<STR_LIT>']:<EOL><INDENT>if not file_is_fq_data_name( rec['<STR_LIT>'] ):<EOL><INDENT>continue<EOL><DEDENT>listing.append( rec )<EOL><DEDENT>return {'<STR_LIT:status>': True, '<STR_LIT>': listing}<EOL>
List all files uploaded to a particular blockchain ID
Return {'status': True, 'listing': list} on success
Return {'error': ...} on error