Permalink
Browse files

Add tip to filter our current and parent directories from lsdir

(cherry picked from commit 1a62f24)
  • Loading branch information...
nickanderson committed Oct 16, 2017
1 parent f42539f commit 488731ab71a8453428df0f6cf7d7ef33afea0973
Showing with 5 additions and 0 deletions.
  1. +5 −0 reference/functions/lsdir.markdown
@@ -22,6 +22,11 @@ Output:
[%CFEngine_include_snippet(lsdir.cf, #\+begin_src\s+example_output\s*, .*end_src)%]
**Tips:**
* Filter out the current (```.```) and parent (```..```)directories with a
negative look ahead. ```lsdir( "/tmp", "^(?!(\.|\.\.)).*", false )```.
**Notes:**
**History:** Was introduced in 3.3.0, Nova 2.2.0 (2011)

0 comments on commit 488731a

Please sign in to comment.