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 download package to aid in the retrieval of file/files from remote sources #140

Merged
merged 2 commits into from
Oct 29, 2021

Conversation

shadycuz
Copy link
Member

@shadycuz shadycuz commented Oct 29, 2021

I have added an interface called FileRetriever that for now specifies a single method void retrieve(String url, Path destination).

I have created two different classes that implement this interface. HttpRetriever which downloads a file from an HTTP server and ArchiveRetriever which does the same thing but unpacks the tar/zip to the destination (which would have to be a directory).

I had to patch the Path library with some additional functionality to implement the ArchiveRetriever, but in the future I hope to inline that logic into the ArchiveRetriever.

@shadycuz shadycuz added enhancement New feature or request minor Bumps the minor version. labels Oct 29, 2021
@shadycuz shadycuz changed the title Add Downloads Package Add Download Package Oct 29, 2021
@shadycuz shadycuz changed the title Add Download Package Add download package to aid in the retrieval of file/files from remote sources Oct 29, 2021
@shadycuz shadycuz merged commit b19c77a into develop Oct 29, 2021
@shadycuz shadycuz deleted the file_retrievers branch October 29, 2021 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Bumps the minor version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant