Skip to content

How to check if a path or key exists? #2589

Closed Answered by Xuanwo
huang12zheng asked this question in Q&A
Discussion options

You must be logged in to vote

This simplest way is using is_exist. The normal way is using stat and check the returning error code.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by huang12zheng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants