This commit is contained in:
@ -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,
|
||||
|
@ -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 =
|
||||
|
Reference in New Issue
Block a user