Answers for "golang create folder if not exist"

Go
1

golang create folder if not exist

if _, err := os.Stat(path); os.IsNotExist(err) {
    os.Mkdir(path, mode)
}
Posted by: Guest on September-10-2020

Code answers related to "golang create folder if not exist"

Browse Popular Code Answers by Language