Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasAllowedFilesInRegular ¶
func HasAllowedFilesInRegular(regularFiles []parser.ParsedFile, allowedExtensions []string, filterSamples bool) bool
HasAllowedFilesInRegular checks if any regular (non-archive) files match allowed extensions If allowedExtensions is empty, all file types are allowed
func HasPopularExtension ¶
HasPopularExtension reports whether file_path has a popular extension (case-insensitive) or matches known RAR or 7zip patterns (e.g., .rar, .r00, .partXX.rar, .7z, .7z.001).
func IsAllowedFile ¶
func IsAllowedFile(filename string, size int64, allowedExtensions []string, filterSamples bool) bool
IsAllowedFile checks if a filename has an allowed extension If allowedExtensions is empty, all files are allowed size is used to prevent false positives for sample/proof checks on large files
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.