Merge remote-tracking branch 'upstream/main'
This commit is contained in:
commit
897758d829
@ -46,8 +46,9 @@ class FileTransferModule(_ModuleBase):
|
|||||||
library_path = Path(path)
|
library_path = Path(path)
|
||||||
if not library_path.exists():
|
if not library_path.exists():
|
||||||
return False, f"目录不存在:{library_path}"
|
return False, f"目录不存在:{library_path}"
|
||||||
if library_path.stat().st_dev != download_devid:
|
if settings.TRANSFER_TYPE == "link":
|
||||||
return False, "下载目录与媒体库目录不在同一设备,将导致硬链接失败"
|
if library_path.stat().st_dev != download_devid:
|
||||||
|
return False, "下载目录与媒体库目录不在同一设备,将导致硬链接失败"
|
||||||
return True, ""
|
return True, ""
|
||||||
|
|
||||||
def init_setting(self) -> Tuple[str, Union[str, bool]]:
|
def init_setting(self) -> Tuple[str, Union[str, bool]]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user