[dokuwiki] Re: Deleting a namespace

On Mon, 27 Feb 2006 17:47:20 +0000
Anthony Walters <anthony.walters@xxxxxxx> wrote:

> http://wiki.splitbrain.org/wiki:namespaces
> This page tells me that
> "When all pages inside a namespace are removed the namespace logically
> doesn_t exist anymore. DokuWiki usually deletes the now empty
> directory  as well."
> 
> What config files(s) do i edit to set this up?

There is no need to setup anything. Deleting empty directories is
handled by the io_sweepNS() function which is called everytime a file is
deleted.

However this may not work always. Eg. someone opened a nonexisting page
for editing but then browsed away there may be a stale lockfile left. In
this case deleteing the non-empty directory will fail silently.

Suggestions for improving the mechanism are welcome.

> Perhaps i need to have a cron job running to delete empty directories
> on  a nightly basis, has anyone written such a script?

This would certainly work.

Andi
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: