filesystem.py: remove unused md5sum (#47832)
This commit is contained in:
parent
e37e53cfe8
commit
67d494fa0b
@ -2773,22 +2773,6 @@ def prefixes(path):
|
|||||||
return paths
|
return paths
|
||||||
|
|
||||||
|
|
||||||
@system_path_filter
|
|
||||||
def md5sum(file):
|
|
||||||
"""Compute the MD5 sum of a file.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
file (str): file to be checksummed
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
MD5 sum of the file's content
|
|
||||||
"""
|
|
||||||
md5 = hashlib.md5()
|
|
||||||
with open(file, "rb") as f:
|
|
||||||
md5.update(f.read())
|
|
||||||
return md5.digest()
|
|
||||||
|
|
||||||
|
|
||||||
@system_path_filter
|
@system_path_filter
|
||||||
def remove_directory_contents(dir):
|
def remove_directory_contents(dir):
|
||||||
"""Remove all contents of a directory."""
|
"""Remove all contents of a directory."""
|
||||||
|
Loading…
Reference in New Issue
Block a user