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
Israel Garcia
libcloudstorage
Commits
2b7bc4ab
Commit
2b7bc4ab
authored
Feb 14, 2018
by
Paweł Wegner
Browse files
commandlinebrowser: fixed build.
parent
04d6fc89
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/commandlinebrowser/main.cpp
View file @
2b7bc4ab
...
...
@@ -53,7 +53,7 @@ class Callback : public cloudstorage::ICloudProvider::IAuthCallback {
IItem
::
Pointer
getChild
(
ICloudProvider
*
provider
,
IItem
::
Pointer
item
,
const
std
::
string
&
filename
)
{
auto
lst
=
provider
->
listDirectoryAsync
(
item
)
->
result
().
right
();
auto
lst
=
provider
->
listDirectory
Simple
Async
(
item
)
->
result
().
right
();
if
(
!
lst
)
return
nullptr
;
for
(
auto
i
:
*
lst
)
if
(
i
->
filename
()
==
filename
)
return
i
;
...
...
@@ -87,7 +87,7 @@ int main(int, char**) {
for
(
auto
p
:
ICloudStorage
::
create
()
->
providers
())
std
::
cout
<<
p
<<
"
\n
"
;
}
else
{
auto
lst
=
current_provider
->
listDirectoryAsync
(
current_directory
)
auto
lst
=
current_provider
->
listDirectory
Simple
Async
(
current_directory
)
->
result
()
.
right
();
if
(
lst
)
...
...
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