converting a directory to a qtree