33 lines
690 B
C++
33 lines
690 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 <filesystem>
|
|
|
|
namespace openVulkanoCpp
|
|
{
|
|
struct FileDescription
|
|
{
|
|
std::filesystem::file_type type;
|
|
std::string path;
|
|
size_t size;
|
|
std::filesystem::perms permissions;
|
|
time_t createTime, modTime;
|
|
|
|
static FileDescription MakeDescriptionForFile(const char* path, size_t size)
|
|
{
|
|
return {
|
|
std::filesystem::file_type::regular,
|
|
path,
|
|
size,
|
|
std::filesystem::perms(0644),
|
|
std::time(nullptr), std::time(nullptr)
|
|
};
|
|
}
|
|
};
|
|
}
|