isReservedName
fn
bool isReservedName(string name) @safe pureCheck if a filename is a Windows reserved device name.
Windows reserves names such as CON, PRN, AUX, NUL, COM1-9, LPT1-9. The reservation applies to the stem before the first dot and ignores trailing spaces and dots, so "CON.txt" and "NUL. " are reserved too. Archives containing such names may cause problems on Windows.
Parameters
name | The base filename to check (not a full path). |
Returns
true if the name is a Windows reserved device name.