diff Common/FileSystemStorage.cpp @ 111:407bd022b0cf

in /move-storage: now detecting if file should be moved or not
author Alain Mazy <am@osimis.io>
date Tue, 10 Oct 2023 16:11:18 +0200
parents d7295e8678d7
children 3c7e0374f28e
line wrap: on
line diff
--- a/Common/FileSystemStorage.cpp	Tue Oct 10 15:40:36 2023 +0200
+++ b/Common/FileSystemStorage.cpp	Tue Oct 10 16:11:18 2023 +0200
@@ -146,4 +146,12 @@
 
 }
 
+bool FileSystemStoragePlugin::FileExists(const std::string& uuid, OrthancPluginContentType type, bool encryptionEnabled)
+{
+  namespace fs = boost::filesystem;
 
+  fs::path path = BaseStorage::GetOrthancFileSystemPath(uuid, fileSystemRootPath_);
+
+  return Orthanc::SystemToolbox::IsExistingFile(path.string());
+}
+