Skip to content

Commit bf30ee2

Browse files
committed
Issue: apache#5408
1 parent 5b0dc5a commit bf30ee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/python/src/operator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ impl Operator {
179179
/// # Notes
180180
///
181181
/// - Delete not existing error won't return errors.
182-
pub fn delete(&self, path: &str) -> PyResult<()> {
183-
self.core.delete(path).map_err(format_pyerr)
182+
pub fn exists(&self, path: &str) -> PyResult<(bool)> {
183+
self.core.exists(path).map_err(format_pyerr)
184184
}
185185

186186
/// List current dir path.

0 commit comments

Comments
 (0)