Add FsUtils

This commit is contained in:
2023-10-10 09:37:11 +02:00
parent 488d1ebfc8
commit 2a49949e0c
2 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <filesystem>
namespace OpenVulkano
{
class FsUtils
{
static bool DeleteEmptyDirs(const std::filesystem::path& dir, bool recursive = true);
static bool IsTreeEmpty(const std::filesystem::path& dir);
};
}