diff OrthancFramework/Sources/FileStorage/FilesystemStorage.cpp @ 4185:b289a1234822

giving a try to cross-platform compilation of SyncStorageArea
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 14 Sep 2020 18:09:30 +0200
parents bf7b9edf6b81
children 0034f855c023
line wrap: on
line diff
--- a/OrthancFramework/Sources/FileStorage/FilesystemStorage.cpp	Sat Sep 12 16:03:48 2020 +0200
+++ b/OrthancFramework/Sources/FileStorage/FilesystemStorage.cpp	Mon Sep 14 18:09:30 2020 +0200
@@ -68,7 +68,7 @@
     return path;
   }
 
-  FilesystemStorage::FilesystemStorage(std::string root)
+  void FilesystemStorage::Setup(const std::string& root)
   {
     //root_ = boost::filesystem::absolute(root).string();
     root_ = root;
@@ -133,7 +133,7 @@
       }
     }
 
-    SystemToolbox::WriteFile(content, size, path.string());
+    SystemToolbox::WriteFile(content, size, path.string(), fsyncOnWrite_);
   }