Issue #15904 has been updated by Dan White.

Status changed from Rejected to Re-opened

I understand what you are saying in your response, Eric, but I want tidy to 
remove everything UNDER the tidy::path directory.

My apology if I did not explain properly.

I shall describe the issue in a bit more detail: 
<pre>
tree /opt/home/users/george

/opt/home/users/george
   |-one
   |-two

ls -laR /opt/home/users/george
total 8
drwxr-xr-x  5 root  wheel  170 Aug 13 19:44 .
drwxr-xr-x  3 root  wheel  102 Aug 13 19:40 ..
drwxr-xr-x  3 root  wheel  102 Aug 13 19:44 one
-rw-r--r--  1 root  wheel   15 Aug 13 19:44 three
drwxr-xr-x  3 root  wheel  102 Aug 13 19:44 two

/opt/home/users/george/one:
total 8
drwxr-xr-x  3 root  wheel  102 Aug 13 19:44 .
drwxr-xr-x  5 root  wheel  170 Aug 13 19:44 ..
-rw-r--r--  1 root  wheel   24 Aug 13 19:44 a

/opt/home/users/george/two:
total 8
drwxr-xr-x  3 root  wheel  102 Aug 13 19:44 .
drwxr-xr-x  5 root  wheel  170 Aug 13 19:44 ..
-rw-r--r--  1 root  wheel   20 Aug 13 19:44 b
</pre>

After running that "tidy" on it, I have 
<pre>
ls -laR /opt/home/users/george
total 0
drwxr-xr-x  4 root  wheel  136 Aug 13 19:45 .
drwxr-xr-x  3 root  wheel  102 Aug 13 19:40 ..
drwxr-xr-x  2 root  wheel   68 Aug 13 19:45 one
drwxr-xr-x  2 root  wheel   68 Aug 13 19:45 two

/opt/home/users/george/one:
total 0
drwxr-xr-x  2 root  wheel   68 Aug 13 19:45 .
drwxr-xr-x  4 root  wheel  136 Aug 13 19:45 ..

/opt/home/users/george/two:
total 0
drwxr-xr-x  2 root  wheel   68 Aug 13 19:45 .
drwxr-xr-x  4 root  wheel  136 Aug 13 19:45 ..
</pre>

I expect `/opt/home/users/george` to remain, but what about 
`/opt/home/users/george/one` and `/opt/home/users/george/two` ?

Should the directories remain or should they get deleted ?  I am of the 
possibly silly idea that the directories should be deleted.

If I run it AGAIN, the empty directories persist.

Is this the way it is supposed to run ?
----------------------------------------
Bug #15904: Tidy does not remove directories
https://projects.puppetlabs.com/issues/15904#change-68994

Author: Dan White
Status: Re-opened
Priority: Normal
Assignee: 
Category: tidy
Target version: 
Affected Puppet version: 2.6.16
Keywords: tidy
Branch: 


In a node manifest:
<pre>
tidy { '/opt/home/users/george':
    age => '0',
    recurse => true,
    rmdirs => true,
}
</pre>
/opt/home/users/george is a directory.
This resource definition will remove files, but it leaves directories.

Changing it to /opt/home/users/george/ makes no difference.

Using the **path** parameter instead of the default **path/namevar** makes no 
differemce.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to