Skip to content
Snippets Groups Projects
Commit 34d77b6c authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Add the character " to the list of badCharacters in Windows file names

It really is invalid on Windows. Trying to write a file containing
this chacacter give an invalid argument exception.
parent bbaaa560
No related branches found
Tags 2009-06-25
No related merge requests found
...@@ -714,7 +714,7 @@ normaliseDrive drive = if isJust $ readDriveLetter x2 ...@@ -714,7 +714,7 @@ normaliseDrive drive = if isJust $ readDriveLetter x2
-- information for validity functions on Windows -- information for validity functions on Windows
-- see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp -- see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp
badCharacters :: [Char] badCharacters :: [Char]
badCharacters = ":*?><|" badCharacters = ":*?><|\""
badElements :: [FilePath] badElements :: [FilePath]
badElements = ["CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9", "CLOCK$"] badElements = ["CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9", "CLOCK$"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment