Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
8f56f842
Commit
8f56f842
authored
Sep 15, 2014
by
Vladimir Ermakov
Browse files
FTP: Add 'skip' list entry handling.
parent
73868e34
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uas/QGCUASFileManager.cc
View file @
8f56f842
...
...
@@ -160,7 +160,7 @@ void QGCUASFileManager::_listAckResponse(Request* listAck)
// get the length of the name
uint8_t
cBytesLeft
=
cBytes
-
offset
;
size_t
nlen
=
strnlen
(
ptr
,
cBytesLeft
);
if
(
nlen
<
2
)
{
if
(
(
*
ptr
==
'S'
&&
nlen
>
1
)
||
(
*
ptr
!=
'S'
&&
nlen
<
2
)
)
{
_currentOperation
=
kCOIdle
;
_emitErrorMessage
(
tr
(
"Incorrectly formed list entry: '%1'"
).
arg
(
ptr
));
return
;
...
...
@@ -170,10 +170,12 @@ void QGCUASFileManager::_listAckResponse(Request* listAck)
return
;
}
// Returned names are prepended with D for directory, F for file,
U
for
unknown
// Returned names are prepended with D for directory, F for file,
S
for
skip
if
(
*
ptr
==
'F'
||
*
ptr
==
'D'
)
{
// put it in the view
_emitListEntry
(
ptr
);
}
else
if
(
*
ptr
==
'S'
)
{
// do nothing
}
else
{
qDebug
()
<<
"unknown entry"
<<
ptr
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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