[dokuwiki] Re: Deleting a namespace

  • From: Anika Henke <a.c.henke@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 28 Feb 2006 21:44:43 +0100

Timo "Silbär" Falk wrote:

Am Mon, 27 Feb 2006 19:21:22 +0100 schrieb Andreas Gohr:


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.


Hmm, on my WAMP it is definitely not working:

1. Creating new page in empty namespace -> one TXT-file after save in NS
2. reedit the new page, deleting all text -> no file, but NS still there


Did you ever notice that wiki.splitbrain.org has way too many empty folders?! That cannot derive from the scenario mentioned above, can it?


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

Other related posts: