(u string)
| 912 | } |
| 913 | |
| 914 | func (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 | |
| 923 | func (pool *BrutePool) resetFailed() { |
| 924 | pool.failedCount = 1 |