#directories #comparing #cmp #f1 #cpython #f2 #cmpfiles

filecmp

Utilities for comparing files and directories, the rust implementation for CPython filecmp module

4 releases (2 breaking)

0.2.0 Nov 23, 2020
0.1.0 Nov 19, 2020
0.0.2 Nov 16, 2020
0.0.1 Nov 16, 2020

#1542 in Filesystem


Used in justone

LGPL-3.0-only

24KB
458 lines

Utilities for comparing files and directories(WIP).

Struct like in Python3 std-lib:

  • DirCmp

Functions like in Python3 std-lib:

  • cmp(f1, f2, shallow: bool) -> int
  • cmpfiles(a, b, common) -> ([], [], [])
  • clear_cache()

Example

Check out Example for cmp()

Dependencies

~10KB