mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-21 06:13:08 +01:00
Added make/remove directory functionality.
This commit is contained in:
@@ -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() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user