<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [Pkg-puppet-devel] Bug#500852:  Bug#500852: Tidy must specifysize, age, or both</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I'm saying that if no size nor age is specified, tidy should assume I am talking about _any_ size files of any age.&nbsp; I am specifying exactly the files I want removed, so I'm not sure why I have to specify &quot;size &gt;= 0&quot;, which would add no constraints to the files.<BR>
<BR>
If I want to remove a directory, I can't use the file resource, or so the documentation says &quot;Specifying absent will delete the file, although currently this will not recursively delete directories.&quot;<BR>
<BR>
--Jayen<BR>
<BR>
-----Original Message-----<BR>
From: Micah Anderson [<A HREF="mailto:micah@riseup.net">mailto:micah@riseup.net</A>]<BR>
Sent: Tue 10/28/2008 1:55 PM<BR>
To: Jayen Ashar; 500852@bugs.debian.org<BR>
Subject: Re: [Pkg-puppet-devel] Bug#500852:&nbsp; Bug#500852: Tidy must specifysize, age, or both<BR>
<BR>
* Jayen Ashar &lt;jayen@science.unsw.edu.au&gt; [2008-10-20 17:48-0400]:<BR>
&gt; It's not a &quot;bug&quot;, so much as &quot;wishlist&quot;.&nbsp; If neither size nor age is<BR>
&gt; specified, tidy should work off of all files, same as &quot;size &gt;= 0&quot;.&nbsp;<BR>
<BR>
So you are saying that if no size is specified or age is specified, tidy<BR>
should assume you are talking about zero-byte files of any age? I can<BR>
see why you might suggest that these are reasonable defaults, but the<BR>
principle of least surprise would suggest that you should be required to<BR>
specify exactly what files you want removed before removing them.<BR>
<BR>
&gt; I'm not sure I understand the purpose of forcing users to specify<BR>
&gt; something when they've already specified the file's name.<BR>
<BR>
If you want to remove a file just based on the file's name, then you<BR>
should use the file resource, as follows:<BR>
<BR>
file { &quot;/etc/passwd&quot;:<BR>
&nbsp;&nbsp;&nbsp;&nbsp; ensure =&gt; absent;<BR>
}&nbsp;&nbsp;&nbsp;<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>