> System.FilePath.Windows.isValid "\\\\?\\UNC\\"
True
> putStrLn "\\\\?\\UNC\\"
\\?\UNC\
I think this is wrong: \\?\UNC\ is incomplete, it is nether file nor folder name.
|
-- | Is a FILEPATH valid, i.e. could you create a file like it? This function checks for invalid names, |
|
-- and invalid characters, but does not check if length limits are exceeded, as these are typically |
|
-- filesystem dependent. |
If we are in agreement that isValid should return False on this input, there is a harder question ahead. What should be the output of makeValid? Something like \\?\UNC\_\_?
I think this is wrong:
\\?\UNC\is incomplete, it is nether file nor folder name.filepath/System/FilePath/Internal.hs
Lines 1065 to 1067 in 98f8bba
If we are in agreement that
isValidshould returnFalseon this input, there is a harder question ahead. What should be the output ofmakeValid? Something like\\?\UNC\_\_?