func New(dir fs.Directory, policyTree *policy.Tree, options ...Option) fs.Directory {
	rootContext := &ignoreContext{}

	for _, opt := range options {
		opt(rootContext)
	}

	return &ignoreDirectory{".", rootContext, policyTree, dir}
}
// New returns a fs.Directory that wraps another fs.Directory and hides files specified in the ignore dotfiles.
New returns a fs.Directory that wraps another fs.Directory and hides files specified in the ignore dotfiles.
// New returns a fs . Directory that wraps another fs . Directory and hides files specified in the ignore dotfiles .
func New(dir fs.Directory, policyTree *policy.Tree, options ...Option) fs.Directory {
	rootContext := &ignoreContext{}
	for _, opt := range options {
		opt(rootContext)
	}
	return &ignoreDirectory{".", rootContext, policyTree, dir}
}
func New ( dir fs . Directory , policyTree * policy . Tree , options ... Option ) fs . Directory { rootContext := & ignoreContext { } for _ , opt := range options { opt ( rootContext ) } return & ignoreDirectory { " " , rootContext , policyTree , dir } }
New returns a fs.Directory that wraps another fs.Directory and hides files specified in the ignore dotfiles.
New returns a fs . Directory that wraps another fs . Directory and hides files specified in the ignore dotfiles .