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

Update the draft Downloader implementation to actually download discovered new files #10

Merged
merged 1 commit into from
Nov 26, 2023

Commits on Nov 24, 2023

  1. Update the draft Downloader implementation to actually download dis…

    …covered new files
    
    1. Add a new `FileCopier` class with a `copy` method encapsulating the logic to:
        - automatically create necessary directories at the destination
        - actually attempt copying the file
        - identify and handle the edge case when the specified target file already exists
          using a provided `FileCopyEventsHandler` implementation
    2. Update the `Downloader` class to:
        1. Create and configure a `FileCopier` instance with a simple `FileCopyEventsHandler` implementation
           to automatically skip copying over existing files.
        2. Update the `downloadNewFilesFromDir` method to call the `FileCopier.copy` method
           from the `newFiles` loop.
    andreiled committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    49f6d55 View commit details
    Browse the repository at this point in the history