src/GamIO/XWin1D.cc
// ____________________________________________________________________________ 
// ii                   XWinNMR 1D Data Set Error Handling
// ____________________________________________________________________________
ii                   XWinNMR 1D Data Set Error Handling
ii XWinNMR 1D Data Set Error Handling
int XWin1D::CheckDir(int TF,   int warn, const string& dout) const
  {
  if(!TF) return 1;				
  string cmd = "cd " + dout;			
  if(!system(cmd.c_str())) return 1;		
  if(warn)
    {
    XWin1Derror(22, dout, 1);			
    if(warn > 1) XWin1Dfatality(22);		
    else         XWin1Derror(22,1);
    }
  return TF;
  }
int XWin1D :: CheckDir ( int TF , int warn , const string & dout ) const { if ( ! TF ) return 1 ; string cmd = " " + dout ; if ( ! system ( cmd . c_str ( ) ) ) return 1 ; if ( warn ) { XWin1Derror ( 22 , dout , 1 ) ; if ( warn > 1 ) XWin1Dfatality ( 22 ) ; else XWin1Derror ( 22 , 1 ) ; } return TF ; }
____________________________________________________________________________
ii                   XWinNMR 1D Data Set Error Handling
____________________________________________________________________________
____________________________________________________________________________ ii XWinNMR 1D Data Set Error Handling ____________________________________________________________________________
// Good mkdir returns 0 // Perhaps file is from // pre-exisiting dir. // Problems with directory // Can't generate data set