Files
OpenVulkano/openVulkanoCpp/IO/FsUtils.hpp
2024-08-09 14:52:48 +02:00

25 lines
613 B
C++

/*
* 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 "Math/ByteSize.hpp"
#include <filesystem>
namespace OpenVulkano
{
struct FsUtils
{
static bool DeleteEmptyDirs(const std::filesystem::path& dir, bool recursive = true);
static bool DeleteEmptySubTrees(const std::filesystem::path& dir);
static bool IsTreeEmpty(const std::filesystem::path& dir);
static ByteSize GetDirSize(const std::filesystem::path& dir);
};
}