How to check if a path or key exists? #2589
-
let bs = op.read("hello.txt").await?; it is would work. So, is there an api for checking existence |
Beta Was this translation helpful? Give feedback.
Answered by
Xuanwo
Jul 3, 2023
Replies: 1 comment
-
This simplest way is using is_exist. The normal way is using stat and check the returning error code. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
huang12zheng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This simplest way is using is_exist. The normal way is using stat and check the returning error code.