Ignore:
Timestamp:
Mar 9, 2011, 10:50:25 PM (13 years ago)
Author:
sommeria
Message:

write data in a new directory .0 if the selected output directory exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/time_series.m

    r190 r218  
    237237pathdir=fullfile(RootPath{1},subdir_result);
    238238while exist(pathdir,'dir')
    239     pathdir=[pathdir '.0'];
     239    subdir_result=[subdir_result '.0'];
     240    pathdir=fullfile(pathdir,subdir_result);
    240241end
    241242[m1,m2,m3]=mkdir(pathdir);
     
    245246[xx,msg2] = fileattrib(pathdir,'+w','g'); %yield writing access (+w) to user group (g)
    246247if ~strcmp(msg2,'')
    247     msgbox_uvmat('ERROR',['pb of permission for ' subdir_result ': ' msg2])%error message for directory creation
     248    msgbox_uvmat('ERROR',['pb of permission for ' pathdir ': ' msg2])%error message for directory creation
    248249    return
    249250end
Note: See TracChangeset for help on using the changeset viewer.