0001 function [this] = set_drive_info(this)
0002
0003
0004
0005
0006
0007
0008
0009 if length( this.private.drive_info )
0010 current_drive = 1;
0011 for ii=1:length( this.private.drive_info )
0012 if strncmp( upper(this.public.current_dir),...
0013 this.private.drive_info(ii).drive,...
0014 length(this.private.drive_info(ii).drive) )
0015 current_drive = ii;
0016 this.private.drive_info(ii).cwd = this.public.current_dir;
0017 break;
0018 end
0019 end
0020 this.private.current_drive = current_drive;
0021 end
0022