MCPcopy Index your code
hub / github.com/apache/answer / CreateDirIfNotExist

Function CreateDirIfNotExist

pkg/dir/dir.go:28–30  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

26)
27
28func CreateDirIfNotExist(path string) error {
29 return os.MkdirAll(path, os.ModePerm)
30}
31
32func CheckDirExist(path string) bool {
33 f, err := os.Stat(path)

Callers 10

PurgeDeletedFilesMethod · 0.92
NewUploaderServiceFunction · 0.92
AvatarThumbFileMethod · 0.92
InstallConfigFileFunction · 0.92
installUploadDirFunction · 0.92
InstallI18nBundleFunction · 0.92
createMainGoFileFunction · 0.92
copyDirEntriesFunction · 0.92
NewDBFunction · 0.92
NewCacheFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected