toy filesystem in c++