Skip to content
Snippets Groups Projects
Commit df85f599 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

use rmdir/mkdir from matlab

rm historical comments
parent 7e95a3cc
No related branches found
No related tags found
1 merge request!160add function to recreate empty ids files automatically (to replace files in...
Pipeline #204676 passed
......@@ -22,8 +22,8 @@ function [empty_dir_out,ids_empty_structures,okflags] = idses_empty_to_mfile(dir
if nargin < 1 || isempty(dirname_for_files) || ~exist(dirname_for_files,'dir')
dirname_for_files = sprintf('/tmp/%s/idses_empty_to_mfile',getenv('USER'));
unix(['rm -rf ' dirname_for_files]);
unix(['mkdir -p ' dirname_for_files]);
[dummy1,dummy2]=rmdir(dirname_for_files,'s');
mkdir(dirname_for_files);
warning('no folder provided, files will be written to: %s\n',dirname_for_files);
end
empty_dir_out = dirname_for_files;
......@@ -49,8 +49,3 @@ okflags(end+1) = writecell(ids_list_to_generate,fullfile(dirname_for_files,'ids_
if any(okflags~=1)
warning('some flags not ok')
end
% save ids_structures_IMAS326.mat ids_structures ids_list_to_generate ids_list_all
% then use ids_structures_mat_to_m to save all the structures as ids_empty_xx.m files
% [empty_dir_out] = ids_structures_mat_to_m('/tmp/sautero/ids_structures_IMAS331.mat','/tmp/sautero/ids_empty')
%
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment