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

This commit is contained in:
2024-09-27 09:16:59 -05:00
parent 54828600a8
commit 779bfc762e
3 changed files with 35 additions and 28 deletions

View File

@ -62,6 +62,10 @@ private:
[[nodiscard]] auto
decrypt_object_name(std::string &object_name) const -> api_error;
[[nodiscard]] auto
get_last_modified(bool directory,
const std::string &api_path) const -> std::uint64_t;
[[nodiscard]] auto
get_object_info(bool directory, const std::string &api_path,
bool &is_encrypted, std::string &object_name,

View File

@ -28,20 +28,6 @@
#include "utils/utils.hpp"
namespace repertory {
namespace utils::aws {
#if defined(_WIN32)
[[nodiscard]] inline auto format_time(std::uint64_t t) -> std::uint64_t {
auto ft = utils::time::unix_time_to_filetime(t);
return static_cast<std::uint64_t>(ft.dwHighDateTime) << 32u |
ft.dwLowDateTime;
}
#else // _WIN32
[[nodiscard]] inline auto format_time(std::uint64_t t) -> std::uint64_t {
return t;
}
#endif // _WIN32
} // namespace utils::aws
using get_key_callback = std::function<std::string()>;
using get_api_file_token_callback =