diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m index 6366dc81dd5a1e8be5ee6214f1757e8165dc1dd1..678cc15269f0b2a3fc01088e3a6f651a112a4c54 100644 --- a/+PlotID/Publish.m +++ b/+PlotID/Publish.m @@ -60,14 +60,12 @@ end folderName = char(ID); %% Create Data-Directory -addpath(storPath); % ToDo necessary? - if isfolder(fullfile(storPath,folderName)) error(['Folder ',folderName, ' exists - Plot was already published ']); elseif mkdir(fullfile(storPath,folderName)) else error('Directory could not be created - check remote path and permissions'); end - disp('Publishing started'); %% Create a Copy of the script, config and user functions(optional) @@ -90,7 +88,6 @@ if ~configError %config File must exist fclose(fid); end - % user functions if options.CopyUserFCN fList = fList(~ismember(fList,[DataPaths.script,'.m'])); % rmv script from list