_DASH
        function renameRefResultFile(this,drv)
            % Check if current results file exist
            name_cur = strcat(drv.path_out,drv.name,".pos");
            if (exist(name_cur,'file') ~= 2)
                fprintf(2,'\nCurrent results file was not generated correctly!\n');
                this.deleteFile(name_cur);
                status = rmdir(drv.path_out); %#ok<NASGU>
                return;
            end
            
            % Move current results file out of output folder
    