MCPcopy
hub / github.com/larksuite/cli / markdownFetchOutputIsDirectory

Function markdownFetchOutputIsDirectory

shortcuts/markdown/markdown_fetch.go:124–130  ·  view source on GitHub ↗
(runtime *common.RuntimeContext, outputPath string)

Source from the content-addressed store, hash-verified

122}
123
124func markdownFetchOutputIsDirectory(runtime *common.RuntimeContext, outputPath string) bool {
125 if strings.HasSuffix(outputPath, "/") || strings.HasSuffix(outputPath, "\\") {
126 return true
127 }
128 info, err := runtime.FileIO().Stat(outputPath)
129 return err == nil && info.IsDir()
130}

Callers 1

markdown_fetch.goFile · 0.85

Calls 3

FileIOMethod · 0.80
StatMethod · 0.65
IsDirMethod · 0.65

Tested by

no test coverage detected