Skip to content

Commit

Permalink
Merge pull request #231 from hasheddan/parser-symlinks
Browse files Browse the repository at this point in the history
Note that FsReadCloser does not follow symlinks
  • Loading branch information
negz authored Nov 20, 2020
2 parents 67c3928 + a521e11 commit 57ef784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/parser/fsreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func SkipNotYAML() FilterFn {

// NewFsReadCloser returns an FsReadCloser that implements io.ReadCloser. It
// walks the filesystem ahead of time, then reads file contents when Read is
// invoked.
// invoked. It does not follow symbolic links.
func NewFsReadCloser(fs afero.Fs, dir string, fns ...FilterFn) (*FsReadCloser, error) {
paths := []string{}
err := afero.Walk(fs, dir, func(path string, info os.FileInfo, err error) error {
Expand Down

0 comments on commit 57ef784

Please sign in to comment.