Bug #2100

recurse off by one

Added by Hari Sekhon over 1 year ago. Updated 4 months ago.

Status:Accepted Start:03/23/2009
Priority:Normal Due date:
Assignee:Jesse Wolfe % Done:

0%

Category:file
Target version:Statler
Affected version:0.24.7 Branch:
Keywords:
Votes: 0

Description

setting recurse => 1 in a file resource does not cause it to descend into the first level (as opposed to 0 or false which is no recursion).

It seems I have to do recurse => 2 to get it to source the files immediately in the directory specified by the file resource and stop there without entering any subdirectories.

This is not documented in the Type Reference, is not the expect intuitive behaviour and seems like an off by one bug.

History

Updated by James Turnbull over 1 year ago

  • Status changed from Unreviewed to Needs more information
  • Assignee set to Luke Kanies
  • Target version set to unplanned

Okay – that doesn’t sound right? Luke?

Updated by Luke Kanies over 1 year ago

  • Status changed from Needs more information to Accepted

Yeah, if that’s happening it’s a bug. But I seem to recall that being fixed, either in 0.24.8 or in master. Anyone care to test those branches?

Updated by Luke Kanies 4 months ago

  • Assignee changed from Luke Kanies to Jesse Wolfe
  • Target version changed from unplanned to Statler

Also available in: Atom PDF