Skip to content

Commit

Permalink
Issue : #5408 open exists api in operator for python binding
Browse files Browse the repository at this point in the history
added the exists python binding api
  • Loading branch information
Yashika-code authored Dec 26, 2024
1 parent 26a2bfe commit 08e8121
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bindings/python/src/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@ impl Operator {
pub fn delete(&self, path: &str) -> PyResult<()> {
self.core.delete(path).map_err(format_pyerr)
}


// existing the path
pub fn exists(&self, path: &str) -> PyResult<bool> {
self.core.exists(path).map_err(format_pyerr)
}

/// List current dir path.
pub fn list(&self, path: &str) -> PyResult<BlockingLister> {
let l = self.core.lister(path).map_err(format_pyerr)?;
Expand Down

0 comments on commit 08e8121

Please sign in to comment.