From 7aa730cd676a032bba1caf722a56c48a5bbbe926 Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Fri, 8 Dec 2023 17:15:45 -0500
Subject: [PATCH] fileutils: windows: fix compile error using
 std::filesystem::path

Change-Id: Ic0900204ec84527aa447ac579040b36aa51a1b6a
---
 src/fileutils.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/fileutils.cpp b/src/fileutils.cpp
index e563b17ff2..0bd77baab3 100644
--- a/src/fileutils.cpp
+++ b/src/fileutils.cpp
@@ -357,7 +357,9 @@ readArchive(const std::filesystem::path& path, const std::string& pwd)
 }
 
 void
-writeArchive(const std::string& archive_str, const std::filesystem::path& path, const std::string& password)
+writeArchive(const std::string& archive_str,
+             const std::filesystem::path& path,
+             const std::string& password)
 {
     JAMI_LOG("Writing archive to {}", path);
 
@@ -371,7 +373,7 @@ writeArchive(const std::string& archive_str, const std::filesystem::path& path,
         }
     } else {
         JAMI_WARNING("Unsecured archiving (no password)");
-        archiver::compressGzip(archive_str, path);
+        archiver::compressGzip(archive_str, path.string());
     }
 }
 
-- 
GitLab