Introduce crc32

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk
2024-10-03 08:31:28 +02:00
parent 073793c83a
commit b5a6cfbb93
2 changed files with 10 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ class File(FsItem):
def md5sum(self, binary=True, timeout: timedelta = timedelta(minutes=30)):
return fs_utils.md5sum(str(self), binary, timeout)
def crc32sum(self, timeout: timedelta = timedelta(minutes=30)):
return fs_utils.crc32sum(str(self), timeout)
def read(self):
return fs_utils.read_file(str(self))