filesystem.py: remove unused md5sum (#47832)
This commit is contained in:
		@@ -2773,22 +2773,6 @@ def prefixes(path):
 | 
			
		||||
    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
 | 
			
		||||
def remove_directory_contents(dir):
 | 
			
		||||
    """Remove all contents of a directory."""
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user