diff --git a/src/Vehicle/FTPManager.cc b/src/Vehicle/FTPManager.cc index 1e37f3d2aa0..bc21b5d7bb0 100644 --- a/src/Vehicle/FTPManager.cc +++ b/src/Vehicle/FTPManager.cc @@ -484,7 +484,8 @@ void FTPManager::_listDirectoryWorker(bool firstRequest) request.hdr.opcode = MavlinkFTP::kCmdListDirectory; request.hdr.offset = _listDirectoryState.expectedOffset; request.hdr.size = sizeof(request.data); - + _fillRequestDataWithString(&request, _listDirectoryState.fullPathOnVehicle); + if (firstRequest) { _listDirectoryState.retryCount = 0; } else {