add isFolder attr to node