Changeset 934 for trunk/src/browse_data.m
- Timestamp:
- Mar 25, 2016, 8:38:32 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/browse_data.m
r931 r934 87 87 88 88 %% initialize the GUI 89 if ~(exist('DataSeries','var') && exist(DataSeries,'dir'))89 if ~(exist('DataSeries','var') && ischar(DataSeries) && exist(DataSeries,'dir')) 90 90 DataSeries=pwd;% current dir is the starting data series by default 91 91 end … … 273 273 ListFiles=ListCells(1,:);%list of dir and file names 274 274 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); 276 277 check_dir=cell2mat(ListCells(4,:));% =1 for directories, =0 for files 277 278 for ilist=1:numel(ListFiles) … … 282 283 else %update the list of dataSeries 283 284 [tild,msg]=fileattrib(mirror); 285 msg.Name=regexprep(msg.Name,'^/.','/');%remove the dot in /. at the beginning of the name 284 286 if ~strcmp(msg.Name,mirror)% if it is a link 285 287 ListFiles{ilist}=['~' ListFiles{ilist}];%mark link by '@' in the list
Note: See TracChangeset
for help on using the changeset viewer.