Fix incorrect messages about KDMs being written to folders.
authorCarl Hetherington <cth@carlh.net>
Sat, 28 Jan 2023 09:18:11 +0000 (10:18 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 11 Feb 2023 21:26:38 +0000 (22:26 +0100)
src/lib/kdm_with_metadata.cc

index 7dee935c4a0346c2b11b97aee5e2268f87055baf..e4aea1be70d97524ef02c73f88de289d35a3c66f 100644 (file)
@@ -153,8 +153,8 @@ write_directories (
                if (!boost::filesystem::exists (path) || confirm_overwrite (path)) {
                        boost::filesystem::create_directories (path);
                        write_files(kdm, path, filename_format, confirm_overwrite);
+                       written += kdm.size();
                }
-               written += kdm.size();
        }
 
        return written;