Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 May 2007 16:02:00 +0100
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Is there any already-existing method for removing empty dirs through periodic?
Message-ID:  <20070512160200.1c5ecf9e@gumby.homeunix.com.>
In-Reply-To: <20070512050558.GA28182@just.puresimplicity.net>
References:  <20070512050558.GA28182@just.puresimplicity.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 12 May 2007 00:05:58 -0500
Josh Tolbert <hemi@puresimplicity.net> wrote:

> ...
> This setup eats disk space fast. I've been using the clean-tmps daily
> periodic to remove all files older than seven days from the video
> location, which takes care of the space issue, but there's one more
> little issue. It leaves a lot of empty directories. I could just
> write a cron entry to take care of empty directories, but I'm hoping
> there's something I'm missing and there's a way to remove empty
> directories from the locations specified in daily_clean_tmps_dirs

They should be deleted automatically, but it's based on when they are
last modified, not just when the last file is removed, so it should take
14 days in your case.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070512160200.1c5ecf9e>