risingwave_
regress_
test
2.4.0-alpha
ensure_
dir
Sections
Return
In risingwave_
regress_
test::
file
risingwave_regress_test
::
file
Function
ensure_dir
Copy item path
Source
fn ensure_dir<P:
AsRef
<
Path
>>(dir: P) ->
Result
<
()
>
Expand description
Check
dir
not exists or is empty.
§
Return
If
dir
doesn’t exist, create it and all its parents.
If
dir
exits, return error if not empty.