This commit is contained in:
jxxghp 2023-09-01 11:35:46 +08:00
parent fe80f86518
commit 4dba739d54
2 changed files with 5 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class TransferChain(ChainBase):
def do_transfer(self, path: Path, meta: MetaBase = None,
mediainfo: MediaInfo = None, download_hash: str = None,
target: Path = None, transfer_type: str = None,
epformat: EpisodeFormat = None, min_filesize: int = None) -> Tuple[bool, str]:
epformat: EpisodeFormat = None, min_filesize: int = 0) -> Tuple[bool, str]:
"""
执行一个复杂目录的转移操作
:param path: 待转移目录或文件

View File

@ -95,6 +95,10 @@ class SystemUtils:
"""
获取目录下所有指定扩展名的文件包括子目录
"""
if not min_filesize:
min_filesize = 0
if not directory.exists():
return []