This is not really a good approach because a Folder should be expected to have the children stored internally.
This implementation is very unsafe
Handle errors
Reimplement with poll()?
Handle shutdown of the server