{ path, suffix ? null, type ? "regular" }: let lib = import ; in map (n: path + ("/" + n)) (builtins.filter (n: suffix == null || (builtins.match ".*\\.${suffix}" n) != null) (lib.attrNames (lib.filterAttrs (n: v: v == type) (builtins.readDir path))))