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

Fix bug where non-machine language files could not be read #81

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

craigthomas
Copy link
Owner

This PR fixes a problem when attempting to read file information from virtual disk. Any file type that was not marked as machine language could not be read. This was due to the fact that the virtual disk file assumed that every file had preamble and postamble information associated with it. This isn't the case with file types such as ASCII files or BASIC files. A check is now performed on the file type first before preamble or postamble data is read. A new method was introduced to calculate file size due to the fact that file size information was previously only read from the preamble. Unit tests updated to catch new conditions. This PR closes #79

@craigthomas craigthomas merged commit e8dd5fd into main Oct 3, 2022
@craigthomas craigthomas deleted the non-machine-language-files branch October 6, 2022 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disk files that are non-object types cannot be read
1 participant