Skip to content
Discussion options

You must be logged in to vote

See here https://docs.micropython.org/en/latest/reference/mpyfiles.html for an explanation of mpy files and their format.

The mpy file data is stored mainly using number of elements and their size. There seems not to be a eof marker. So extraneous appended data might be ignored for now.

However I wouldn't rely on that. I suggest writing an additional json file with a dictionary of file names and their hash.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kjm1102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants