MCPcopy Create free account
hub / github.com/chainreactors/spray / safePath

Method safePath

core/pool/brutepool.go:914–921  ·  view source on GitHub ↗
(u string)

Source from the content-addressed store, hash-verified

912}
913
914func (pool *BrutePool) safePath(u string) string {
915 // 自动生成的目录将采用safepath的方式拼接到相对目录中, 避免出现//的情况. 例如init, check, common
916 if pool.isDir {
917 return pkg.SafePath(pool.dir, u)
918 } else {
919 return pkg.SafePath(pool.url.Path+"/", u)
920 }
921}
922
923func (pool *BrutePool) resetFailed() {
924 pool.failedCount = 1

Callers 3

InitMethod · 0.95
RunMethod · 0.95
doCheckMethod · 0.95

Calls 1

SafePathFunction · 0.92

Tested by

no test coverage detected