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

Add a utility function for extending a file with the content of another file. #471

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edawson
Copy link
Collaborator

@edawson edawson commented Nov 23, 2024

Summary

This PR adds a new fileutil module that includes a single function (extend) which extends a file with the content of a second file. @polinabinder1 @savitha-eng and I are using this to reduce the disk usage by a factor of ~2 when using the H5AD -> SCDL conversion script on many H5AD files.

Details

The extend function takes in string paths to two files (standard OS files) and extends the first file with the contents of the second. It does not return. The first file is modified in place.

Usage

Currently, this is not user-facing code.

Testing

Currently, tested locally. @polinabinder1 @savitha-eng to add tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant