fix bug
This commit is contained in:
parent
fe80f86518
commit
4dba739d54
@ -92,7 +92,7 @@ class TransferChain(ChainBase):
|
|||||||
def do_transfer(self, path: Path, meta: MetaBase = None,
|
def do_transfer(self, path: Path, meta: MetaBase = None,
|
||||||
mediainfo: MediaInfo = None, download_hash: str = None,
|
mediainfo: MediaInfo = None, download_hash: str = None,
|
||||||
target: Path = None, transfer_type: 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: 待转移目录或文件
|
:param path: 待转移目录或文件
|
||||||
|
@ -95,6 +95,10 @@ class SystemUtils:
|
|||||||
"""
|
"""
|
||||||
获取目录下所有指定扩展名的文件(包括子目录)
|
获取目录下所有指定扩展名的文件(包括子目录)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if not min_filesize:
|
||||||
|
min_filesize = 0
|
||||||
|
|
||||||
if not directory.exists():
|
if not directory.exists():
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user