MCPcopy Create free account
hub / github.com/SolarLune/masterplan / FolderExists

Function FolderExists

utils.go:1036–1045  ·  view source on GitHub ↗
(fp string)

Source from the content-addressed store, hash-verified

1034}
1035
1036func FolderExists(fp string) bool {
1037 fp = strings.TrimSpace(fp)
1038 fsInfo, err := os.Stat(fp)
1039
1040 if (err != nil && !os.IsExist(err)) || !fsInfo.IsDir() {
1041 return false
1042 }
1043
1044 return true
1045}
1046
1047// FilesinDirectory lists the files in a directory that have a filename as the base.
1048func FilesInDirectory(dir string, prefix string) []string {

Callers 6

TakeScreenshotFunction · 0.85
PathToRelativeMethod · 0.85
PathToAbsoluteMethod · 0.85
NewLinkContentsFunction · 0.85
NewResourceFunction · 0.85
ConstructMenusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected