Skip to content

Tentative: Implemented binary output from fs_cat. #16

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

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

ubidefeo
Copy link
Collaborator

This PR is mostly a way to open a discussion about transferring files as binary from the board to the disk (and to a consumer such as Lab for MicroPython Editor.

I have initially implemented a fs_cat_bytes method, but it does not belong to the pyboard.py API.
Of course the changes to fs_cat now won't return text but an Array of numbers.

This PR requires these changes to work, and they are both draft.

To make MicroPython.js consumer agnostic maybe it would make sense to have a way to fs_cat bytes and string as separate.

Let's see how we can allow the editor/consumers to download binary files without corrupting them and still make MicroPython.js a clean module

@ubidefeo ubidefeo marked this pull request as draft November 14, 2024 07:00
@ubidefeo ubidefeo marked this pull request as ready for review November 14, 2024 12:56
@ubidefeo ubidefeo changed the base branch from main to development November 14, 2024 13:13
Copy link
Contributor

@murilopolese murilopolese left a comment

Choose a reason for hiding this comment

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

Looks good!

@ubidefeo ubidefeo merged commit d741c4f into development Nov 14, 2024
1 check passed
@ubidefeo ubidefeo deleted the feature/binary-file-handling branch November 14, 2024 13:14
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.

2 participants