Skip to main content

No project description provided

Project description

equality-check

from equality_check import EQUALITY

EQ = EQUALITY (
	FOLDER ("STATUS_FOLDERS/1/EQ_1"),
	FOLDER ("STATUS_FOLDERS/1/EQ_2")
)

If the folders are equal, then these assertions should pass.

assert (len (EQ ['1']) == 0)
assert (len (EQ ['2']) == 0)

Otherwise:

#
# UNIQUE TO 1
# UNIQUE TO 2
#
#	"f" 	UNIQUE FILE
#	"fc" 	UNIQUE FILE CONTENTS
#
#	"d"		UNIQUE DIRECTORY
#
#	"s"		UNIQUE SYMLINK
#	"sc"	UNIQUE SYMLINK CONTENTS
#
EQ = {
	1: {
		"asdf/asdf": "f",
		"asdf/asd": "d",
		"asdff/asd": "?"
	},
	2: {}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

equality-check-0.0.5.tar.gz (3.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page