This commit is contained in:
parent
6f9b1f8f08
commit
c2dbfc970a
@ -324,7 +324,6 @@ auto sia_provider::get_file_list(api_file_list &list, std::string &marker) const
|
|||||||
return api_error::comm_error;
|
return api_error::comm_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
marker = object_list.at("nextMarker").get<std::string>();
|
|
||||||
iterate_objects("/", object_list,
|
iterate_objects("/", object_list,
|
||||||
[&](auto &&entry_api_path, auto &&directory, auto &&entry) {
|
[&](auto &&entry_api_path, auto &&directory, auto &&entry) {
|
||||||
if (directory) {
|
if (directory) {
|
||||||
@ -345,6 +344,7 @@ auto sia_provider::get_file_list(api_file_list &list, std::string &marker) const
|
|||||||
entry["size"].template get<std::uint64_t>(), meta));
|
entry["size"].template get<std::uint64_t>(), meta));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
marker = object_list.at("nextMarker").get<std::string>();
|
||||||
return object_list.at("hasMore").get<bool>() ? api_error::more_data
|
return object_list.at("hasMore").get<bool>() ? api_error::more_data
|
||||||
: api_error::success;
|
: api_error::success;
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user