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 DirectorySnapshotDiff.ContextManager #1011

Merged

Commits on Oct 9, 2023

  1. Add DirectorySnapshotDiff.ContextManager

    A context manager that creates two directory snapshots and a diff object
    that represents the difference between the two snapshots.
    
    ```python
    dir_snapshot_diff_context_manager = DirectorySnapshotDiff.ContextManager("some_path")
    with dir_snapshot_diff_context_manager:
        # Do some things that change files...
        ...
    
    print(dir_snapshot_diff_context_manager.diff.files_created)
    print(dir_snapshot_diff_context_manager.diff.files_deleted)
    ```
    msabramo committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    9d3ad38 View commit details
    Browse the repository at this point in the history
  2. Add entry to changelog.rst

    msabramo committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    ae51445 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb621b2 View commit details
    Browse the repository at this point in the history