feat(lib): import library "argparse"
This commit is contained in:
parent
29a4f9e8ea
commit
448c572026
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# Duplicate Check
|
# Duplicate Check
|
||||||
# Version: 0.9.0
|
# Version: 0.10.0
|
||||||
|
|
||||||
# Copyright 2025 Jake Winters
|
# Copyright 2025 Jake Winters
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import hashlib
|
import hashlib
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
def hash_file(file_path):
|
def hash_file(file_path):
|
||||||
@ -16,4 +17,4 @@ def hash_file(file_path):
|
|||||||
with open(file_path, 'rb') as f:
|
with open(file_path, 'rb') as f:
|
||||||
for byte_block in iter(lambda: f.read(65536), b''):
|
for byte_block in iter(lambda: f.read(65536), b''):
|
||||||
sha256_hash.update(byte_block)
|
sha256_hash.update(byte_block)
|
||||||
return sha256_hash.hexdigest()
|
return sha256_hash.hexdigest()
|
Loading…
x
Reference in New Issue
Block a user