mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2024-11-10 17:47:13 +08:00
better trace for nohardlink
This commit is contained in:
parent
0003ffd554
commit
ad324828e7
1 changed files with 2 additions and 0 deletions
|
@ -276,6 +276,8 @@ def nohardlink(file):
|
|||
check = False
|
||||
else:
|
||||
sorted_files = sorted(Path(file).rglob("*"), key=lambda x: os.stat(x).st_size, reverse=True)
|
||||
logger.trace(f"Folder: {file}")
|
||||
logger.trace(f"Files Sorted by size: {sorted_files}")
|
||||
threshold = 0.5
|
||||
largest_file_size = os.stat(sorted_files[0]).st_size
|
||||
logger.trace(f"Largest file: {sorted_files[0]}")
|
||||
|
|
Loading…
Reference in a new issue