func (d *Driver) PreCreateCheck() error {
	if d.UserDataFile != "" {
		if _, err := os.Stat(d.UserDataFile); os.IsNotExist(err) {
			return fmt.Errorf("user-data file %s could not be found", d.UserDataFile)
		}
	}

	return nil
}
func (d *Driver) PreCreateCheck() error {
	if d.UserDataFile != "" {
		if _, err := os.Stat(d.UserDataFile); os.IsNotExist(err) {
			return fmt.Errorf("user-data file %s could not be found", d.UserDataFile)
		}
	}

	return nil
}
func ( d * Driver ) PreCreateCheck ( ) error { if d . UserDataFile != " " { if _ , err := os . Stat ( d . UserDataFile ) ; os . IsNotExist ( err ) { return fmt . Errorf ( " " , d . UserDataFile ) } } return nil }
// PreCreateCheck allows for pre-create operations to make sure a driver is
// ready for creation
PreCreateCheck allows for pre - create operations to make sure a driver is ready for creation