qmm.fileutils module

class qmm.fileutils.ArchiveEvents[source]

Bases: enum.Enum

An enumeration.

FILE_ADDED = 1
FILE_REMOVED = 2
qmm.fileutils.FILE_IGNORED = 4

Indicate that the file will be ignored by the software.

qmm.fileutils.FILE_MATCHED = 1

Indicate that the file is found on the drive, and match in content.

qmm.fileutils.FILE_MISMATCHED = 3

Indicate that the file to exists on drive, but not matching in content.

qmm.fileutils.FILE_MISSING = 2

Indicate that the file is absent from the drive.

qmm.fileutils.file_status(file: qmm.bucket.FileMetadata) → int[source]
qmm.fileutils.ignore_patterns(seven_flag=False)[source]

Output a tuple of patterns to ignore.

Parameters:seven_flag (bool) – Patterns format following 7z exclude switch.