updated build system
This commit is contained in:
@ -141,14 +141,12 @@ auto get_file_size(std::string_view path, std::uint64_t &file_size) -> bool {
|
||||
}
|
||||
|
||||
file_size = static_cast<std::uint64_t>(st.st_size);
|
||||
return true;
|
||||
#else // !defined(_WIN32)
|
||||
std::error_code ec{};
|
||||
file_size = std::filesystem::file_size(abs_path, ec);
|
||||
if (not ec) {
|
||||
return false;
|
||||
}
|
||||
return (ec.value() == 0);
|
||||
#endif // defined(_WIN32)
|
||||
return true;
|
||||
}
|
||||
|
||||
auto get_file_size(std::wstring_view path, std::uint64_t &file_size) -> bool {
|
||||
|
Reference in New Issue
Block a user