code: func (t *BTTracer) SetOutputPath(path string, perm os.FileMode) error {
  	if perm == 0 {
  		perm = 0755
  	}
  
  	if err := os.MkdirAll(path, perm); err != nil {
  		t.Logf(LogError, "Failed to create output directory: %v\n", err)
  		return err
  	}
  
  	t.m.Lock()
  	defer t.m.Unlock()
  
  	t.outputDir = path
  
  	return nil
  }
docs: // Sets the output path for generated snapshots. The directory will be
  // created with the specified permission bits if it does not already
  // exist.
  //
  // If perm is 0, a default of 0755 will be used.