diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m index f571cc41b8e3920c5335c09bcde83d79dd7a854d..45e8a31544fda24a9aa9836ea1e8e91628dd0b36 100644 --- a/+PlotID/Publish.m +++ b/+PlotID/Publish.m @@ -168,6 +168,8 @@ end switch options.Method case 'centralized' DataFolderName = 'data'; + warning(['Linked HDF5 can only be moved with their ',... + 'respective master files in the ', DataFolderName, ' folder.']); % check if data folder exists if ~isfolder(fullfile(storPath,DataFolderName)) mkdir(fullfile(storPath,DataFolderName)); @@ -210,8 +212,13 @@ switch options.Method [status] = PlotID.createLinkedHDF5(pathToData,linkedHDFPath); end %if end %if + % add do not move message + doNotMove = ['do not move this folder without the ',... + DataFolderName, ' folder']; + fid = fopen(fullfile(storPath,folderName,[doNotMove,'.txt']),'w'); + fprintf(fid,doNotMove); fclose(fid); end %for - clear DataFolderName + clear DataFolderName doNotmove case 'individual' % Create a copy of the research data [~, status, msg] = PlotID.createFileCopy(dataObj.DataPaths,folderName,storPath,ID, 'data');