diff --git a/core/src/layers/complete.rs b/core/src/layers/complete.rs index 7cc5cd56613..5601df7d172 100644 --- a/core/src/layers/complete.rs +++ b/core/src/layers/complete.rs @@ -387,14 +387,8 @@ impl LayeredAccess for CompleteAccessor { &self.inner } - // Todo: May move the logic to the implement of Layer::layer of CompleteAccessor fn metadata(&self) -> Arc { - let mut meta = self.meta.as_ref().clone(); - let cap = meta.full_capability_mut(); - if cap.list && cap.write_can_empty { - cap.create_dir = true; - } - meta.into() + self.meta.clone() } async fn create_dir(&self, path: &str, args: OpCreateDir) -> Result {