implement in-memory filesystem, each link is a directory rather than a file