Skip to content

Commit 5da1f2c

Browse files
committed
Added search_up() as documented alias of findfiles_up()
search_up() is an undocumented alias for findfiles_up() that has existed since 3.18. Added a Hugo alias so /reference/functions/search_up redirects to the findfiles_up page, and noted the alias in the description.
1 parent 421005f commit 5da1f2c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

content/reference/functions/findfiles_up.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ layout: default
33
title: findfiles_up
44
aliases:
55
- "/reference-functions-findfiles_up.html"
6+
- "/reference/functions/search_up"
67
---
78

89
{{< CFEngine_function_prototype(path, glob, level) >}}
910

1011
**Description:** Return a data array of files that match a given glob pattern
11-
by searching up the directory tree.
12+
by searching up the directory tree. Also available as `search_up()`.
1213

1314
This function searches for files matching a given glob pattern `glob` in the
1415
local filesystem by searching up the directory tree from a given absolute

generator/_references.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@
6464
[mpf-services-autorun]: reference-masterfiles-policy-framework-services-autorun.html
6565
[package-modules-the-api]: reference-language-concepts-modules-package-module-api.html#the-api
6666
[Functions#collecting functions]: /reference/functions/#collecting-functions
67+
[search_up]: /reference/functions/findfiles_up "search_up"

0 commit comments

Comments
 (0)