github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/pkg/storage/local_unix.go (about) 1 // Copyright 2020 PingCAP, Inc. Licensed under Apache-2.0. 2 3 // +build !windows 4 5 package storage 6 7 import ( 8 "os" 9 "syscall" 10 11 "github.com/pingcap/errors" 12 ) 13 14 func mkdirAll(base string) error { 15 mask := syscall.Umask(0) 16 err := os.MkdirAll(base, localDirPerm) 17 syscall.Umask(mask) 18 return errors.Trace(err) 19 }