Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarbian-sap committed Dec 5, 2023
1 parent 0a87545 commit 7d3253f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/manifests/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ func fileTypeFromMode(mode fs.FileMode) uint {
return fileType
}

// Search fsys for all files under dir matching namePattern and fileType.
// Resulting paths will be always relative to fsys (cleaned, with no leading dot).
// The parameter dir must not contain any dot or double dot, unless it equals '.' in which case the whole fsys will be searched.
// As an alternative, dir can be empty (which is equivalent to dir == '.').
// The parameter maxDepth can be any integer between 0 and 10000 (where 0 is interpreted as 10000).
func find(fsys fs.FS, dir string, namePattern string, fileType uint, maxDepth uint) ([]string, error) {
if dir == "" {
dir = "."
Expand Down

0 comments on commit 7d3253f

Please sign in to comment.