Merge pull request #549 from HaveAGitGat/disable_mvdir

Disable tryMvdir
This commit is contained in:
HaveAGitGat 2023-11-26 10:04:47 +00:00 committed by GitHub
commit 01ca0ce2ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 38 deletions

View file

@ -68,6 +68,7 @@ const tryMove = async ({
return true;
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const tryMvdir = async ({
sourcePath,
destinationPath,
@ -219,16 +220,17 @@ const fileMoveOrCopy = async ({
return true;
}
const mvdird = await tryMvdir({
sourcePath,
destinationPath,
args,
sourceFileSize,
});
// disable: https://github.com/HaveAGitGat/Tdarr/issues/885
// const mvdird = await tryMvdir({
// sourcePath,
// destinationPath,
// args,
// sourceFileSize,
// });
if (mvdird) {
return true;
}
// if (mvdird) {
// return true;
// }
args.jobLog('Failed to move file, trying copy');
}