Skip to content

Commit

Permalink
Clean up comment for Pkgsrc.ReadDir
Browse files Browse the repository at this point in the history
  • Loading branch information
rillig committed Mar 5, 2024
1 parent 62dcce3 commit 0bee63d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions v23/pkgsrc.go
Original file line number Diff line number Diff line change
Expand Up @@ -893,11 +893,10 @@ func (src *Pkgsrc) IsOpsysVar(varbase string) bool {
return false
}

// ReadDir lists the files and subdirectories from the given directory
// (relative to the pkgsrc root).
// ReadDir lists the files and subdirectories from the given directory.
//
// The result may contain empty directories that are left over from CVS.
// For performance reasons, the caller needs to filter these out; see isEmptyDir.
// The result may contain empty directories that are left over from CVS,
// for performance reasons; use isEmptyDir to filter them out.
func (src *Pkgsrc) ReadDir(dirName PkgsrcPath) []os.DirEntry {
dir := src.File(dirName)
entries, err := dir.ReadDir()
Expand Down

0 comments on commit 0bee63d

Please sign in to comment.