Ignore:
Timestamp:
Mar 25, 2016, 8:38:32 PM (8 years ago)
Author:
sommeria
Message:

browse data corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/browse_data.m

    r931 r934  
    8787
    8888%% initialize the GUI
    89 if ~(exist('DataSeries','var') && exist(DataSeries,'dir'))
     89if ~(exist('DataSeries','var') && ischar(DataSeries) && exist(DataSeries,'dir'))
    9090    DataSeries=pwd;% current dir is the starting data series by default
    9191end
     
    273273        ListFiles=ListCells(1,:);%list of dir and file  names
    274274        cell_remove=regexp(ListFiles,'^(-|\.|\+/\.)');% detect strings beginning by '-' ,'.' or '+/.'(dir beginning by . )
    275         check_keep=cellfun('isempty', cell_remove);
     275        cell_remove_tild=regexp(ListFiles,'~$');% detect tild the end of file nqme (do not list)
     276        check_keep=cellfun('isempty', cell_remove) & cellfun('isempty', cell_remove_tild);
    276277        check_dir=cell2mat(ListCells(4,:));% =1 for directories, =0 for files
    277278        for ilist=1:numel(ListFiles)
     
    282283                else %update the list of dataSeries
    283284                    [tild,msg]=fileattrib(mirror);
     285                    msg.Name=regexprep(msg.Name,'^/.','/');%remove the dot in /. at the beginning of the name
    284286                    if ~strcmp(msg.Name,mirror)% if it is a link
    285287                        ListFiles{ilist}=['~' ListFiles{ilist}];%mark link by '@' in the list
Note: See TracChangeset for help on using the changeset viewer.