MemoryDirectory implementation