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

I would like to be able to receive the file's checksum directly from the disk via the data card #3684

Open
igorkll opened this issue Dec 9, 2023 · 1 comment

Comments

@igorkll
Copy link

igorkll commented Dec 9, 2023

A good opportunity for a data card would be to calculate the file checksum directly from disk, bypassing RAM. that is, something like this: component.data.sha256FromFilesystem(address, path). in this case, the data card itself would read the file and output the result. this will avoid reading the entire file into RAM, which may not be enough to read the entire file.

@asiekierka
Copy link
Contributor

This would hurt separation of responsibilities, IMO. A better idea would be to have a callback-based checksum implementation (init/update/final).

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

No branches or pull requests

2 participants