MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / NewFile

Function NewFile

opensca/model/file.go:19–24  ·  view source on GitHub ↗

NewFile 创建文件对象 abs: 文件绝对路径 rel: 文件相对路径(相对于项目根目录)

(abs, rel string)

Source from the content-addressed store, hash-verified

17// abs: 文件绝对路径
18// rel: 文件相对路径(相对于项目根目录)
19func NewFile(abs, rel string) *File {
20 return &File{
21 abspath: abs,
22 relpath: rel,
23 }
24}
25
26// Abspath 文件绝对路径
27func (file *File) Abspath() string {

Callers 8

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
ParseGradleFunction · 0.92
WalkFunction · 0.92
walkFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected