0001 function private = init_private()
0002
0003
0004
0005
0006
0007 private = struct(...
0008 'current_file', [],...
0009 'drive_info', [],...
0010 'current_drive', 1,...
0011 'gui_handles', []);
0012 private.current_file = {};
0013
0014
0015 if ispc
0016
0017 cnt = 0;
0018 for drive = [real('C'):real('Z')]
0019 str = sprintf('%c:', drive);
0020 if length( dir(str) )
0021
0022 cnt = cnt+1;
0023 drive_info(cnt) = struct('drive', str, 'cwd', str);
0024 end
0025 end
0026 if cnt, private.drive_info = drive_info; end
0027 end