Merge remote-tracking branch 'upstream/main'

This commit is contained in:
HankunYu 2024-03-06 19:54:39 +00:00
commit 897758d829
No known key found for this signature in database

View File

@ -46,6 +46,7 @@ class FileTransferModule(_ModuleBase):
library_path = Path(path)
if not library_path.exists():
return False, f"目录不存在:{library_path}"
if settings.TRANSFER_TYPE == "link":
if library_path.stat().st_dev != download_devid:
return False, "下载目录与媒体库目录不在同一设备,将导致硬链接失败"
return True, ""