Changeset 1095 for trunk/src/uigetfile_uvmat.m
- Timestamp:
- Mar 31, 2021, 3:32:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uigetfile_uvmat.m
r1093 r1095 54 54 elseif exist(InputName,'file') 55 55 [InputDir,InputFileName,Ext]=fileparts(InputName); 56 if isempty(InputFileName)% if InputName is alr eady the root56 if isempty(InputFileName)% if InputName is alr2eady the root 57 57 InputFileName=InputDir; 58 58 if ~isempty(strcmp (computer, {'PCWIN','PCWIN64'}))%case of Windows systems … … 308 308 FullSelectName=[DirName '/' SelectName]; 309 309 end 310 end 310 end% end 311 % end 311 312 if CheckSubDir%exist(FullSelectName,'dir')% a directory has been selected 312 313 set(hObject,'BackgroundColor',[1 1 0])% paint list in yellow to indicate action … … 344 345 index_dir=find(strcmp('isdir',fieldnames(ListStruct))); 345 346 check_dir=cell2mat(ListCells(index_dir,:));% =1 for directories, =0 for files 346 % for ilist=1:numel(check_dir)347 % if check_dir(ilist)348 347 ListFiles(check_dir)=regexprep(ListFiles(check_dir),'^.+','+/$0');% put '+/' in front of dir name display 349 % end350 % end351 348 if exist('filter_ext','var') && ~strcmp(filter_ext,'*') &&~strcmp(filter_ext,'uigetdir') 352 349 if strcmp(filter_ext,'image')
Note: See TracChangeset
for help on using the changeset viewer.