def file.lic

ezx@1.11.0.0 · src/pkg/pkg.bend:633

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base
import ezx@1.11.0.0/src/pkg/path.bend as P

633# whether a file of a package is a LICENSE bend took along. A module ends in
634# `.bend` and a foreign body in `.c` or `.js`, so a file named LICENSE is one
635# the walk took along beside them.
636def file.lic(item: Item) -> Bool:
637  Item{at, _sum} = item
638  String.eq(P.base(at), "LICENSE")

Uses (4)

Used by (2)