SafeWriteConfigAs writes current configuration to a given filename if it does not exist.
(filename string)
| 1651 | |
| 1652 | // SafeWriteConfigAs writes current configuration to a given filename if it does not exist. |
| 1653 | func SafeWriteConfigAs(filename string) error { return v.SafeWriteConfigAs(filename) } |
| 1654 | |
| 1655 | func (v *Viper) SafeWriteConfigAs(filename string) error { |
| 1656 | alreadyExists, err := afero.Exists(v.fs, filename) |
nothing calls this directly
no test coverage detected