MCPcopy
hub / github.com/ChineseSubFinder/ChineseSubFinder / IsFile

Function IsFile

pkg/util.go:198–204  ·  view source on GitHub ↗

IsFile 存在且是文件

(filePath string)

Source from the content-addressed store, hash-verified

196
197// IsFile 存在且是文件
198func IsFile(filePath string) bool {
199 s, err := os.Stat(filePath)
200 if err != nil {
201 return false
202 }
203 return !s.IsDir()
204}
205
206// FileNameIsBDMV 是否是 BDMV 蓝光目录,符合返回 true,以及 fakseVideoFPath
207func FileNameIsBDMV(id_bdmv_fileFPath string) (bool, string) {

Callers 15

IsMatchThisFormatMethod · 0.92
IsMatchThisFormatMethod · 0.92
RestoreFunction · 0.92
IsExportedMethod · 0.92
CreateExportedMaskMethod · 0.92
isAudioExportedMethod · 0.92
isSubExportedMethod · 0.92

Calls

no outgoing calls

Tested by 4

testUnArchiveFunction · 0.74
TestHotFix001_ProcessFunction · 0.74
TestCheckSpeFileFunction · 0.74