Jira (PUP-9514) tidy: Allow removal of old directories, even if not empty
Title: Message Title Dirk Heinrichs commented on PUP-9514 Re: tidy: Allow removal of old directories, even if not empty OK, tested on Windows and it's working there, too. Anyway, after more than 2 years I can't remember anymore what exactly wasn't working back then. Thanks Josh Cooper for looking into it. Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.298539.1551862945000.4830.1636628340029%40Atlassian.JIRA.
Jira (PUP-9514) tidy: Allow removal of old directories, even if not empty
Title: Message Title Dirk Heinrichs commented on PUP-9514 Re: tidy: Allow removal of old directories, even if not empty Could this be a Windows-only thing? I see you tested it on Linux. Anyway, I've already moved it into a Powershell script, triggered by a scheduled task. Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.298539.1551862945000.4742.1636615740037%40Atlassian.JIRA.
Jira (PUP-9514) tidy: Allow removal of old directories, even if not empty
Title: Message Title Josh Cooper commented on PUP-9514 Re: tidy: Allow removal of old directories, even if not empty Tidy already deletes directories when using recurse and rmdirs => true. # find /tmp/out-1/ /tmp/out-1/ /tmp/out-1/file1 # cat tidy.pp tidy { 'cleanup': path => '/tmp', matches => ['out-*'], age => '1s', recurse => 1, rmdirs => true, } # puppet apply tidy.pp Notice: Compiled catalog for swell-limbo.delivery.puppetlabs.net in environment production in 0.02 seconds Notice: /Stage[main]/Main/Tidy[cleanup]: Tidying 1 files
Jira (PUP-9514) tidy: Allow removal of old directories, even if not empty
Title: Message Title Josh Cooper updated an issue Puppet / PUP-9514 tidy: Allow removal of old directories, even if not empty Change By: Josh Cooper Labels: help_wanted Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.298539.1551862945000.54038.1560979560169%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-9514) tidy: Allow removal of old directories, even if not empty
Title: Message Title Jorie Tappa updated an issue Puppet / PUP-9514 tidy: Allow removal of old directories, even if not empty Change By: Jorie Tappa Team: Coremunity Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-9514) tidy: Allow removal of old directories, even if not empty
Title: Message Title Dirk Heinrichs created an issue Puppet / PUP-9514 tidy: Allow removal of old directories, even if not empty Issue Type: Improvement Assignee: Unassigned Components: Platform Created: 2019/03/06 1:02 AM Priority: Major Reporter: Dirk Heinrichs The tidy resource currently doesn't allow removal of non-empty directories. But sometimes this is exactly what is needed. For example we have a Windows application which doesn't cleanup after itself and leaves behind lots of directories with name "out-*" which I would like to remove after some days. Unfortunately, those directories are written to the root of drive D:, alongside other directories, which ought to be kept (but shouldn't need to be traversed). So the approach I'd like to use is: tidy { 'cleanup_d': path => 'D:/', matches => ['out-*'], age => '7d',