cleanup
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2024-08-28 18:00:25 -05:00
parent 6cae320556
commit 4bb34781fe

View File

@@ -72,10 +72,6 @@ encrypt_provider::encrypt_provider(app_config &config) : config_(config) {}
auto encrypt_provider::create_api_file(
const std::string &api_path, bool directory,
const std::string &source_path) -> api_file {
static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__),
};
#if defined(_WIN32)
struct _stat64 buf {};
_stat64(source_path.c_str(), &buf);
@@ -114,7 +110,7 @@ auto encrypt_provider::create_api_file(
static_cast<std::uint64_t>(buf.st_ctime));
file.modified_date = utils::time::windows_time_to_unix_time(
static_cast<std::uint64_t>(buf.st_mtime));
#else // !defined(_WIN32)
#else // !defined(_WIN32) && !defined(__APPLE__)
file.changed_date = static_cast<std::uint64_t>(
buf.st_mtim.tv_nsec +
(buf.st_mtim.tv_sec * utils::time::NANOS_PER_SECOND));