Exemplo n.º 1
0
Arquivo: dir.go Projeto: dvln/util
// CreateIfNotExists creates a file or a directory only if it does not already exist.
func CreateIfNotExists(dir string) error {
	return path.CreateIfNotExists(dir, true)
}
Exemplo n.º 2
0
Arquivo: file.go Projeto: dvln/util
// CreateIfNotExists creates a file or a directory only if it does not already exist.
func CreateIfNotExists(file string) error {
	return path.CreateIfNotExists(file, false)
}