Changeset 824 for trunk/src/uigetfile_uvmat.m
- Timestamp:
- Nov 22, 2014, 12:15:53 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uigetfile_uvmat.m
r809 r824 147 147 htitlebox=findobj(hfig,'tag','titlebox'); % display the current dir name 148 148 DirName=get(htitlebox,'String'); 149 149 if isempty(regexp(DirName,'^http://'))% if the input dir is not a web site (begins by http://) 150 % FullSelectName=DirName; 151 % else 150 152 if ~strcmp(filter_ext,'uigetdir')% a file is expected as output, not a dir 151 153 hlist=findobj(hfig,'Tag','list'); … … 162 164 end 163 165 FullSelectName=fullfile(DirName,SelectName); 166 % if regexp(DirName,'^http://')% if the input dir is a web site (begins by http://) 167 164 168 if exist(FullSelectName,'file') 165 169 switch option … … 181 185 end 182 186 end 187 end 183 188 set(hObject,'backgroundColor',[0 1 0])% indicate end button activation 184 189 uiresume(get(hObject,'parent')) … … 313 318 NumFiles=0; %default 314 319 if numel(ListStruct)<1 % case of empty dir 320 % if regexp(DirName,'^http://')% if the input dir is a web site (begins by http://) 321 % web(DirName) 322 % else 315 323 ListFiles={}; 316 324 return 325 % end 317 326 end 318 327 ListCells=struct2cell(ListStruct);% transform dir struct to a cell arrray
Note: See TracChangeset
for help on using the changeset viewer.