[pmwiki-users] Ghost pages in 2.1.5

Joachim Durchholz jo at durchholz.org
Sat Oct 7 02:35:54 CDT 2006


Patrick R. Michaud schrieb:
> Given that PageStores can be given arbitrary directory paths
> and $...Fmt strings, I haven't come across a good way to figure
> out which directories are valid pagestores and which are not.

A quick&dirty way would be to ignore directories with a name that starts 
with a dot. (You can't create directories or files that start with a dot 
in Windows explorer, so explaining the mechanism would also need a 
longish explanation how to create such a thing anyway on the server.)

Another way would be to ignore directories that have a file named 
"not-a-wiki-store". Or, reversely, include only directories that have a 
file that is named "wiki-store".

Third: ignore directories named "attic".

Just off the top of my head.

Regards,
Jo




More information about the pmwiki-users mailing list