Function pathIncluded [src]

Prototype

pub fn pathIncluded(opts: Options, path: []const u8) bool

Parameters

opts: Optionspath: []const u8

Source

pub fn pathIncluded(opts: Options, path: []const u8) bool { for (opts.exclude_extensions) |ext| { if (std.mem.endsWith(u8, path, ext)) return false; } if (opts.include_extensions) |incs| { for (incs) |inc| { if (std.mem.endsWith(u8, path, inc)) return true; } else { return false; } } return true; }