listfolder implementation