I think mkdirs is idempotent, isn't it? If so, I don't think we need this check