        if (~movefile(name_cur,drv.path_in))
                fprintf(2,'\nCurrent results file was not generated correctly!\n');
                this.deleteFile(name_cur);
                status = rmdir(drv.path_out); %#ok<NASGU>
                return;
            end
            
            % Delete output folder (if empty)
            status = rmdir(drv.path_out); %#ok<NASGU>
            
            % Rename current results file to reference results file
            name_cur = strcat(drv.path_in,drv.na