nappy/utils/compare.py
def compare(i1, i2):
    """
    Compares items whether files or directories.
    Reports any differences at the command line but
    also returns them in a dictionary as:
    ???
    """
    if os.path.isfile(i1):
        compFiles(i1, i2)
    elif os.path.isdir(i1):
        compDirs(i1, i2)
    else:
        exitNicely("Cannot recognise/find item '" + i1 + "'.")

    Compares items whether files or directories.
    Reports any differences at the command line but
    also returns them in a dictionary as:
    ???
    
Compares items whether files or directories.
Compares items whether files or directories .
def compare(i1, i2):
    if os.path.isfile(i1):
        compFiles(i1, i2)
    elif os.path.isdir(i1):
        compDirs(i1, i2)
    else:
        exitNicely("Cannot recognise/find item '" + i1 + "'.")
def compare ( i1 , i2 ) : if os . path . isfile ( i1 ) : compFiles ( i1 , i2 ) elif os . path . isdir ( i1 ) : compDirs ( i1 , i2 ) else : exitNicely ( "Cannot recognise/find item '" + i1 + "'." )
Compares items whether files or directories.
Compares items whether files or directories .
"""
    Compares items whether files or directories.
    Reports any differences at the command line but
    also returns them in a dictionary as:
    ???
    """
i1
i2