Esempio n. 1
0
File: dir.go Progetto: 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)
}
Esempio n. 2
0
File: file.go Progetto: 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)
}