fix: add log for candidate path

This commit is contained in:
MasutaYunikon committed 2026-04-08 22:07:19 +02:00
1 parent debf61f714
commit 89c0db5f36
1 file changed
+5 -1
+5 -1
View File
@@ -328,7 +328,11 @@ async function organizeTorrent(hash: string, name: string, savePath: string, ser
]
let src: string | null = null
for (const c of candidates) { if (fs.existsSync(c)) { src = c; break } }
for (const c of candidates) {
debug(`Candidate : ${c} → ${fs.existsSync(c)}`)
if (fs.existsSync(c)) { src = c; break }
}
if (!src) {
error(`Fichier source introuvable : ${filename}`)