aboutsummaryrefslogtreecommitdiff
path: root/src/FileAnalyzer.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-20 13:11:59 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-20 13:11:59 +0200
commitc1db97f057e8f20aa26a2342da94eeff1d7a7725 (patch)
treeb795e75ba14bb2b9cab0fbc6aad01cd76b892939 /src/FileAnalyzer.cpp
parent5465c09cd108e37720dbad139de98bdcf5dfe8bf (diff)
Proper atomic rename? also do not generate mipmap for manga
Diffstat (limited to 'src/FileAnalyzer.cpp')
-rw-r--r--src/FileAnalyzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FileAnalyzer.cpp b/src/FileAnalyzer.cpp
index 0059233..9f05919 100644
--- a/src/FileAnalyzer.cpp
+++ b/src/FileAnalyzer.cpp
@@ -135,7 +135,7 @@ namespace QuickMedia {
}
}
- return rename(destination_path_tmp.data.c_str(), destination_path) == 0;
+ return rename_atomic(destination_path_tmp.data.c_str(), destination_path) == 0;
}
// TODO: Remove dependency on ffprobe