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
Details
# Platform: windows 2000 SP 2 # Python: Python 2.4.2 # MoinMoin: Release 1.5.2 (release)
Workaround
- Just choose an other operating system.
- Use different pagenames, e.g. LPT-Port or COM2-Device or ...
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?
I have entered this just for the record. (In case someone comes across this issue too.) Yes, you could make moin aware of this "Windows feature" of course, but I think there are much more important issues out there than this. -- JózsefJároli 2006-03-13 11:55:32
Plan
- Priority:
- Assigned to:
- Status: