swift-simulator: only add a subdir once in listObjects