Skip to content
Snippets Groups Projects
Commit b68ff67d authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

Add do not move warning and file

parent bbf4456d
Branches
Tags
2 merge requests!62Introduce changes for V1.0 RC 1,!59Improve centralized function by warnings and moving code to FCN
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment