search fn for filetree