This commit is contained in:
2024-08-23 12:03:40 -05:00
parent d4f0431cd5
commit 3bce0e9c70
3 changed files with 4 additions and 7 deletions

View File

@ -46,10 +46,6 @@ public:
auto operator=(const s3_provider &) -> s3_provider & = delete; auto operator=(const s3_provider &) -> s3_provider & = delete;
auto operator=(s3_provider &&) -> s3_provider & = delete; auto operator=(s3_provider &&) -> s3_provider & = delete;
public:
[[nodiscard]] static auto
convert_api_date(std::string_view date) -> std::uint64_t;
private: private:
[[nodiscard]] auto [[nodiscard]] auto
add_if_not_found(api_file &file, add_if_not_found(api_file &file,
@ -99,6 +95,9 @@ protected:
stop_type &stop_requested) -> api_error override; stop_type &stop_requested) -> api_error override;
public: public:
[[nodiscard]] static auto
convert_api_date(std::string_view date) -> std::uint64_t;
[[nodiscard]] auto get_directory_item_count(const std::string &api_path) const [[nodiscard]] auto get_directory_item_count(const std::string &api_path) const
-> std::uint64_t override; -> std::uint64_t override;

View File

@ -29,8 +29,6 @@ void calculate_allocation_size(bool directory, std::uint64_t file_size,
UINT64 allocation_size, UINT64 allocation_size,
std::string &allocation_meta_size); std::string &allocation_meta_size);
[[nodiscard]] auto convert_api_date(const std::string &date) -> std::uint64_t;
[[nodiscard]] auto [[nodiscard]] auto
create_volume_label(const provider_type &prov) -> std::string; create_volume_label(const provider_type &prov) -> std::string;

View File

@ -466,7 +466,7 @@ auto s3_provider::get_file_list(api_file_list &list) const -> api_error {
file.api_path = utils::path::create_api_path(api_path); file.api_path = utils::path::create_api_path(api_path);
file.api_parent = utils::path::get_parent_api_path(file.api_path); file.api_parent = utils::path::get_parent_api_path(file.api_path);
file.accessed_date = utils::time::get_time_now(); file.accessed_date = utils::time::get_time_now();
file.changed_date = utils::convert_api_date( file.changed_date = convert_api_date(
node.node().select_node("LastModified").node().text().as_string()); node.node().select_node("LastModified").node().text().as_string());
file.creation_date = file.changed_date; file.creation_date = file.changed_date;
file.file_size = file.file_size =