def _api_browse(name, output, kwargs):
 compact = kwargs.get('compact')
 if (compact and (compact == '1')):
  paths = []
  name = platform_encode(kwargs.get('term', ''))
  paths = [entry['path'] for entry in folders_at_path(os.path.dirname(name)) if ('path' in entry)]
  return report(output, keyword='', data=paths)
 else:
  name = platform_encode(name)
  show_hidden = kwargs.get('show_hidden_folders')
  paths = folders_at_path(name, True, show_hidden)
  return report(output, keyword='paths', data=paths)

def _api_browse ( name , output , kwargs ) : compact = kwargs . get ( 'compact' ) if ( compact and ( compact == '1' ) ) : paths = [ ] name = platform_encode ( kwargs . get ( 'term' , '' ) ) paths = [ entry [ 'path' ] for entry in folders_at_path ( os . path . dirname ( name ) ) if ( 'path' in entry ) ] return report ( output , keyword = '' , data = paths ) else : name = platform_encode ( name ) show_hidden = kwargs . get ( 'show_hidden_folders' ) paths = folders_at_path ( name , True , show_hidden ) return report ( output , keyword = 'paths' , data = paths )
return tree of local path .