From c1db97f057e8f20aa26a2342da94eeff1d7a7725 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 20 Apr 2021 13:11:59 +0200 Subject: Proper atomic rename? also do not generate mipmap for manga --- src/FileAnalyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/FileAnalyzer.cpp') 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 -- cgit v1.2.3