Logo
Explore Help
Register Sign In
admin/nuclei
1
0
Fork 0
You've already forked nuclei
mirror of https://github.com/projectdiscovery/nuclei.git synced 2026-02-14 06:23:12 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
80321bce4c19233f8e780b411952a080d1fb3d7d
nuclei/pkg/catalog/disk/errors.go

8 lines
95 B
Go
Raw Normal View History

refactor(disk): templates catalog (#5914) * refactor(disk): templates catalog Signed-off-by: Dwi Siswanto <git@dw1.io> * feat(disk): drying err Signed-off-by: Dwi Siswanto <git@dw1.io> * feat(disk): simplify `DiskCatalog.OpenFile` method since `BackwardsCompatiblePaths` func is already deprecated. Signed-off-by: Dwi Siswanto <git@dw1.io> * test: update functional test cases Signed-off-by: Dwi Siswanto <git@dw1.io> * feat: reuse error Signed-off-by: Dwi Siswanto <git@dw1.io> * fix(disk): handle glob errors consistently Signed-off-by: Dwi Siswanto <git@dw1.io> * fix(disk): use forward slashes for fs.FS path ops to fix Windows compat. The io/fs package requires forward slashes ("/") as path separators regardless of the OS. Using [filepath.Separator] or [os.PathSeparator] breaks [fs.Open] and [fs.Glob] ops on Windows where the separator is backslash ("\"). Signed-off-by: Dwi Siswanto <git@dw1.io> --------- Signed-off-by: Dwi Siswanto <git@dw1.io>
2025-10-24 07:31:35 +07:00
package disk
import "errors"
var (
ErrNoTemplatesFound = errors.New("no templates found")
)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 313ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API