Рекурсивная функция Pythong не возвращает ничего
def browseTags2(path,filter):
try:
results = system.tag.browse(path)
for branch in results.getResults():
if str(branch['tagType']) == 'Folder':
browseTags2(branch['fullPath'],filter) #I tried adding a return here but then i get no results at all
results = system.tag.browse(path,filter)
for r in results.getResults():
TagPath = str(r['fullPath'])
print TagPath #If I change this to return I get none