From 85c5a7fcfe6466b53efc42660dbaf36fb6deaeae Mon Sep 17 00:00:00 2001
From: "M. Hock" <martin.hock@fst.tu-darmstadt.de>
Date: Thu, 18 Aug 2022 12:03:55 +0200
Subject: [PATCH] Add status assignment for the case of a non-HDF5-file in
 centralized. Fix folderName variable misspelling in a warning

---
 +PlotID/centralized.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/+PlotID/centralized.m b/+PlotID/centralized.m
index ff9b45b..194550a 100644
--- a/+PlotID/centralized.m
+++ b/+PlotID/centralized.m
@@ -39,6 +39,8 @@ for i=1:numel(dataObj.DataPaths)
         if contains(sourcePath,{'.h5','.hdf5'}) % Linking only for HDF5
             linkedHDFPath = fullfile(storPath,folderName);
            [status] = PlotID.createLinkedHDF5(relativeSourcePath{1,1},linkedHDFPath);
+        else % Non-HDF5 file already exists
+            [status] = true;
         end
     else % no identical file exists
         %Copy the file in data and create the links (if hdf5)
@@ -58,7 +60,7 @@ for i=1:numel(dataObj.DataPaths)
         else
             warning(['You use the centralized method for non hdf files,',...
                 newline, 'Your research files are located in the ',...
-                DataFolederName , 'folder.']);
+                DataFolderName , 'folder.']);
             status = true;
         end  %if
     end %if
-- 
GitLab