Closed prrao87 closed 3 weeks ago
I think it is a bug in libc++ as described here: https://github.com/llvm/llvm-project/issues/60634
Reason:
std::filesystem::create_directories("./testdb/ ") returns a failure, even when succeeding.
From strace, I can see the lib implem considers ./testdb/
to be different than ./testdb
(2 mkdir, 2 stat).
It does mkdir("./testdb/"), which passes, then mkdir("./testdb") which failed (directory exists).
When creating/connecting to a Kùzu database in the CLI, adding a trailing slash in the path to the DB causes an IO exception (it shouldn't, the path is valid).
Example for creating a local DB called
testdb
Expected behaviour is that the DB directory is created without errors.