Markus Roberts | 1 May 2010 20:31

Tidy question

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?

-- Markus
-----------------------------------------------------------
The power of accurate observation is
commonly called cynicism by those
who have not got it.  ~George Bernard Shaw
------------------------------------------------------------

--
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