mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 02:35:54 -07:00
renameSync
This commit is contained in:
parent
ba7eb90a0b
commit
2951fad023
2 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fileNameOld != file._id) {
|
if (fileNameOld != file._id) {
|
||||||
fs.rename(fileNameOld, file._id, {
|
fs.renameSync(fileNameOld, file._id, {
|
||||||
overwrite: true,
|
overwrite: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ module.exports.plugin = function plugin(file) {
|
||||||
file.file = fileName;
|
file.file = fileName;
|
||||||
|
|
||||||
if (fileNameOld !== file._id) {
|
if (fileNameOld !== file._id) {
|
||||||
fs.rename(fileNameOld, file._id, {
|
fs.renameSync(fileNameOld, file._id, {
|
||||||
overwrite: true,
|
overwrite: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue