isReservedName

fnbool isReservedName(string name) @safe pure

Check if a filename is a Windows reserved device name.

Windows reserves names such as CON, PRN, AUX, NUL, COM1-9, LPT1-9. Archives containing such names may cause problems on Windows.

Parameters

nameThe base filename to check (not a full path).

Returns

true if the name is a Windows reserved device name.