MCPcopy
hub / github.com/ChineseSubFinder/ChineseSubFinder / isFile

Function isFile

pkg/settings/settings.go:186–192  ·  view source on GitHub ↗

isFile 存在且是文件

(filePath string)

Source from the content-addressed store, hash-verified

184
185// isFile 存在且是文件
186func isFile(filePath string) bool {
187 s, err := os.Stat(filePath)
188 if err != nil {
189 return false
190 }
191 return !s.IsDir()
192}
193
194// 将字符串后面最后一个字符,如果是 / 那么则替换掉,多个也会
195func removeSuffixAddressSlash(orgAddressUrlString string) string {

Callers 1

GetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected