def change_NZB_DIR(nzb_dir):
 if (nzb_dir == ''):
  sickbeard.NZB_DIR = ''
  return True
 if (ek(os.path.normpath, sickbeard.NZB_DIR) != ek(os.path.normpath, nzb_dir)):
  if helpers.makeDir(nzb_dir):
   sickbeard.NZB_DIR = ek(os.path.normpath, nzb_dir)
   logger.log((u'Changed NZB folder to ' + nzb_dir))
  else:
   return False
 return True

def change_NZB_DIR ( nzb_dir ) : if ( nzb_dir == '' ) : sickbeard . NZB_DIR = '' return True if ( ek ( os . path . normpath , sickbeard . NZB_DIR ) != ek ( os . path . normpath , nzb_dir ) ) : if helpers . makeDir ( nzb_dir ) : sickbeard . NZB_DIR = ek ( os . path . normpath , nzb_dir ) logger . log ( ( u'Changed NZB folder to ' + nzb_dir ) ) else : return False return True
change nzb folder .