Description

I tried to create a page named PRN, but I couldn't, due to "OSError [Errno 2] No such file or directory".

I figured out that this is not a MoinMoin bug, but a MS Windows "feature":

If you are forced to host your wiki on Windows, keep in mind that you cannot create files with the following file names:

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed by an extension, for example, NUL.tx7. Windows NT: CLOCK$ is also a reserved device name.

more info here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp

Example

http://archicadwiki.com/

Details

# Platform: windows 2000 SP 2 # Python: Python 2.4.2 # MoinMoin: Release 1.5.2 (release)

Workaround

Discussion

-- JózsefJároli 2006-03-10 12:54:40

So it is clear that it is not a moin bug or do you want moin to avoid writing such names to the disk?

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/CannotCreateAPageDueToOsError (last edited 2007-10-29 19:10:11 by localhost)