Added logs
This commit is contained in:
parent
387153cb32
commit
da49b29471
@ -48,13 +48,16 @@ def returnduplicates(filehashes:dict):
|
|||||||
def main():
|
def main():
|
||||||
global files, directories
|
global files, directories
|
||||||
# Crawl the directories (TD add a timeout here later)
|
# Crawl the directories (TD add a timeout here later)
|
||||||
|
print("Collecting files & paths")
|
||||||
while len(directories) > 0:
|
while len(directories) > 0:
|
||||||
direcCrawler()
|
direcCrawler()
|
||||||
|
print(f'found {len(files)} files')
|
||||||
# Calc hashes
|
# Calc hashes
|
||||||
|
print("Calculating file hashes")
|
||||||
filehashes = calchashes()
|
filehashes = calchashes()
|
||||||
|
|
||||||
print(returnduplicates(filehashes))
|
duplicates = returnduplicates(filehashes)
|
||||||
|
print(f"Found {len(duplicates)} duplicates")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user