Skip to content

Commit

Permalink
Issue: apache#5408
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashika-code committed Dec 23, 2024
1 parent 5b0dc5a commit bf30ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/src/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bf30ee2

Please sign in to comment.