Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Paweł Wegner
libcloudstorage
Commits
7e3a01d1
Commit
7e3a01d1
authored
Jul 12, 2016
by
Paweł Wegner
Browse files
ListDirectoryRequest fix.
parent
1d56d86f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Request/ListDirectoryRequest.cpp
View file @
7e3a01d1
...
...
@@ -37,6 +37,7 @@ ListDirectoryRequest::ListDirectoryRequest(std::shared_ptr<CloudProvider> p,
set_resolver
([
this
](
Request
*
)
{
std
::
string
page_token
;
std
::
vector
<
IItem
::
Pointer
>
result
;
bool
failure
=
false
;
do
{
std
::
stringstream
output_stream
;
int
code
=
sendRequest
(
...
...
@@ -51,10 +52,10 @@ ListDirectoryRequest::ListDirectoryRequest(std::shared_ptr<CloudProvider> p,
if
(
callback_
)
callback_
->
receivedItem
(
t
);
result
.
push_back
(
t
);
}
}
}
while
(
!
page_token
.
empty
())
;
if
(
callback_
)
callback_
->
done
(
result
);
}
else
failure
=
true
;
}
while
(
!
page_token
.
empty
()
&&
!
failure
);
if
(
!
failure
&&
callback_
)
callback_
->
done
(
result
);
return
result
;
});
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment