I agree. your command is much more concise and readable than what I
originally came up with. Thanks.
On Wednesday, March 16, 2016 at 3:47:14 PM UTC+1, jcbollinger wrote:
>
>
>
> On Wednesday, March 16, 2016 at 6:32:02 AM UTC-5, Tony Gaetani wrote:
>>
>> The most-recentl
> Is the most-recently-modified file a resource managed by puppet? If so,
> you can use tidy with recurse, and tidy will not clean up the managed file.
>
>
> On Tue, Mar 15, 2016 at 4:01 AM, Tony Gaetani > wrote:
>
>> I would like to have a tidy resource that del
I would like to have a tidy resource that deletes all files recursively
from directories matching a pattern, except for the most recently modified
file.
Something like this:
tidy {
'clean up files except most recently modified one':
path => '/path/to/files',
recurse => true,
rmd