Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ftp: split list_directory response #2331

Merged
merged 4 commits into from
Jul 15, 2024
Merged

ftp: split list_directory response #2331

merged 4 commits into from
Jul 15, 2024

Conversation

julianoes
Copy link
Collaborator

@julianoes julianoes commented Jun 4, 2024

This way we get a clear list of files and folders instead of an odd list with F or D prefixes.

Depends on mavlink/MAVSDK-Proto#343.

Closes #2308.

@julianoes julianoes force-pushed the pr-ftp-list-dir-api branch 2 times, most recently from 6deaae8 to 3913f1e Compare June 4, 2024 08:36
@julianoes
Copy link
Collaborator Author

Note to self: remove the offset numbers behind the filenames.

@julianoes julianoes force-pushed the pr-ftp-list-dir-api branch 2 times, most recently from 6d2a264 to a11cf2d Compare June 11, 2024 08:51
JonasVautherin
JonasVautherin previously approved these changes Jun 11, 2024
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that's nicer 👍

We already use the queue when calling the user callback, so we don't
need to do it internally as well.
This way we get a clear list of files and folders instead of an odd list
with F or D prefixes.
Otherwise we seem to lock ourselves out when trying to add the FTP
download item to the queue.
Copy link

sonarcloud bot commented Jul 15, 2024

@julianoes julianoes merged commit a7f7353 into main Jul 15, 2024
32 checks passed
@julianoes julianoes deleted the pr-ftp-list-dir-api branch July 15, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve list_directory API
2 participants