예제 #1
0
파일: dir.go 프로젝트: 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)
}
예제 #2
0
파일: file.go 프로젝트: 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)
}