code: func (rd *RAMDirectory) FileExists(name string) bool {
  	rd.EnsureOpen()
  	rd.fileMapLock.RLock()
  	defer rd.fileMapLock.RUnlock()
  	_, ok := rd.fileMap[name]
  	return ok
  }
docs: // Returns true iff the named file exists in this directory