pencil icon indicating copy to clipboard operation
pencil copied to clipboard

Pencil created a file with a Windows reserved name and it's undeletable.

Open miniragnarok opened this issue 9 years ago • 2 comments

I have a page called PRN (it's a registered nursing title). When exporting the project as a single web page, it created a file called prn.png. It turns out that shouldn't be possible in Windows. If I try to open the file it says file not found. Windows explorer says it's 80kb but the properties of the file say it's 0kb.

I've tried to rename it, move it, and delete it with cmd as an admin and using powershell with no luck. I think part of my problem is that it's on a network drive.

  • Operating system: Windows 7
  • Pencil version: 3.0.0-beta.2

miniragnarok avatar Jul 11 '16 20:07 miniragnarok

LOL Windows, even applies to Window 10

Do not use the following reserved names for the name of a file:

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 immediately by an extension; for example, NUL.txt is not recommended. For more information, see Namespaces.

silkentrance avatar Jun 18 '21 16:06 silkentrance

"Black"listing this on all supported platforms should do the trick.

silkentrance avatar Jun 18 '21 16:06 silkentrance