Merge pull request #1620 from thsrite/main

This commit is contained in:
jxxghp 2024-03-08 11:58:52 +08:00 committed by GitHub
commit de4a7becc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +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 settings.DOWNLOADER_MONITOR and settings.TRANSFER_TYPE == "link":
if library_path.stat().st_dev != download_devid:
return False, f"下载目录 {download_path} 与媒体库目录 {library_path} 不在同一设备,将无法硬链接"
return True, ""