MCPcopy
hub / github.com/git-lfs/git-lfs / MkdirAll

Function MkdirAll

tools/filetools.go:135–140  ·  view source on GitHub ↗

MkdirAll makes a directory and any intervening directories with the permissions specified by the core.sharedRepository setting.

(path string, config repositoryPermissionFetcher)

Source from the content-addressed store, hash-verified

133// MkdirAll makes a directory and any intervening directories with the
134// permissions specified by the core.sharedRepository setting.
135func MkdirAll(path string, config repositoryPermissionFetcher) error {
136 umask := 0777 & ^config.RepositoryPermissions(true)
137 return doWithUmask(int(umask), func() error {
138 return os.MkdirAll(path, config.RepositoryPermissions(true))
139 })
140}
141
142var (
143 // currentUser is a wrapper over user.Current(), but instead uses the

Callers 15

prepareCacheDirectoryMethod · 0.92
InstallMethod · 0.92
CopyCallbackFileMethod · 0.92
checkoutConflictFunction · 0.92
newLockClientFunction · 0.92
logPanicFunction · 0.92
fsckCommandFunction · 0.92
setupHTTPLoggerFunction · 0.92
LoggerToFileMethod · 0.92
tempDirMethod · 0.92
tempDirMethod · 0.92
tempDirMethod · 0.92

Calls 2

doWithUmaskFunction · 0.70
RepositoryPermissionsMethod · 0.65

Tested by

no test coverage detected