Skip to content

Commit

Permalink
添加注释
Browse files Browse the repository at this point in the history
  • Loading branch information
wikrin committed Oct 27, 2024
1 parent ab78b10 commit 8add8ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/chain/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ def __do_transfer(self, fileitem: FileItem,
if trans_item.type == "dir" and not bluray_dir:
# 遍历获取下载目录所有文件(递归)
if (files := self.storagechain.list_files(trans_item, recursion=True)): file_items.extend(files)
# files = self.storagechain.list_files(trans_item, recursion=True)
# if files:
# file_items.extend(files)
# 如果是蓝光目录,计算⼤⼩
elif bluray_dir:
# 计算目录下文件总大小
trans_item.size = sum(file.stat().st_size for file in item_path.rglob('*') if file.is_file())
Expand Down

0 comments on commit 8add8ed

Please sign in to comment.