Creating binary patch files containing changes in the directory
Project description
Creating binary patch files containing changes in the directory
Simple usage :
root_dir = os.path.abspath(".tmp")
patch_file="new.patch"
# Get snapshot metadata of folder
state1 = GetState(root_dir)
# change files
# Get snapshot metadata of folder after changes
state2 = GetState(root_dir)
# Calculate diff
diff = GetDiff(state1, state2)
# Create patch file
CreatePatch(root_dir, patch_file, diff)
# Apply patch file
ApplyPatch(root_dir, patch_file)
Source Code:
Travis CI Deploys:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stateman-1.0.6.tar.gz
(2.9 kB
view hashes)