Added make/remove directory functionality.

This commit is contained in:
Branimir Karadžić
2017-11-26 18:17:46 -08:00
parent cf9acbfdb0
commit fbb1e453b6
5 changed files with 179 additions and 7 deletions

View File

@@ -123,4 +123,14 @@ TEST_CASE("FilePath temp", "")
{
bx::FilePath tmp(bx::Dir::Temp);
REQUIRE(0 != bx::strCmp(".", tmp.getPath().getPtr() ) );
bx::Error err;
tmp.join("test/abvgd/555333/test");
REQUIRE(bx::makeAll(tmp, &err) );
REQUIRE(err.isOk() );
tmp.set(bx::Dir::Temp);
tmp.join("test");
REQUIRE(bx::removeAll(tmp, &err) );
REQUIRE(err.isOk() );
}