Luke Kanies | 2 May 2010 18:12
Gravatar

Re: Tidy question

On May 1, 2010, at 11:31 AM, Markus Roberts wrote:

I ran into an interesting edge case when working on http://projects.reductivelabs.com/issues/2910

Specifically, tidy seems to require a trailing "/" on the path for directories; that is,
tidy { tidy_tmp:
path => "/tmp/",
recurse => 1,
matches => [ "jna*.tmp" ],
age => "7d",
backup => false
}

works but:

tidy { tidy_tmp:
path => "/tmp",
recurse => 1,
matches => [ "jna*.tmp" ],
age => "7d",
backup => false
}

doesn't. This seems wrong to me, but may serve some deeper purpose. Since the actual recursion is being done by the file serving code, I'm reluctant to just "fix" it without greater understanding of what's going on.  Anyone have any insights?


Definitely a bug, not a feature.


-- 
Basic research is what I am doing when I don't know what I am doing.
    --Wernher von Braun
---------------------------------------------------------------------
Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to puppet-dev <at> googlegroups.com.
To unsubscribe from this group, send email to puppet-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Gmane