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.