[Moin-user] Empty directories

Thomas Waldmann tw-public at gmx.de
Sat Jun 23 16:23:00 EDT 2012


Hello Kai,

I looked at this issue today and was able to reproduce it:

If one starts editing a new page, a page directory with 2 files
edit-lock (with locking infos) and edit-log (still empty) is created.
If the edit is either cancelled or the window is just closed, that
pagedir and the edit-log file are left on disk.

This issue is not windows specific, it also happens on POSIX systems.

It might be hard to fix this in 1.9 (and moin2 works very different
anyway, so that problem does not exist there), so the suggested
workaround is to just use moin ... maint cleanpage.

cleanpage currently outputs a cleanup script for POSIX OSes, but it
should be rather easy to modify cleanpage.py so it works on all OSes.

IIRC, i chose that "script way" back then so it is possible to review
all those modifications before really doing them on the filesystem.

Some new "--move-crap" and "--move-deleted" options could directly do
the stuff using python stdlib.

Compatibility has to be kept in mind, so the behaviour of this script
does not change for people already using it.

Anybody volunteering for modifying it like that? Patches/Changesets are
welcome!

Cheers,

Thomas







More information about the Moin-user mailing list