From bf30ee2784e8f766495ef9afa0dce22c88b4d10c Mon Sep 17 00:00:00 2001 From: Yashika soni Date: Mon, 23 Dec 2024 14:04:02 +0530 Subject: [PATCH] Issue: #5408 --- bindings/python/src/operator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/src/operator.rs b/bindings/python/src/operator.rs index 76cdb09f8653..5ea4a2c89631 100644 --- a/bindings/python/src/operator.rs +++ b/bindings/python/src/operator.rs @@ -179,8 +179,8 @@ impl Operator { /// # Notes /// /// - Delete not existing error won't return errors. - pub fn delete(&self, path: &str) -> PyResult<()> { - self.core.delete(path).map_err(format_pyerr) + pub fn exists(&self, path: &str) -> PyResult<(bool)> { + self.core.exists(path).map_err(format_pyerr) } /// List current dir path.