haskell / haskell/filepath

isValid "\\\\?\\UNC\\"

Open
#191 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
74
Forks
38
PR merge metrics
No merged PRs in 30d

Description

```haskell
> System.FilePath.Windows.isValid "\\\\?\\UNC\\"
True
> putStrLn "\\\\?\\UNC\\"
\\?\UNC\
```

I think this is wrong: `\\?\UNC\` is incomplete, it is nether file nor folder name.

https://github.com/haskell/filepath/blob/98f8bba9eac8c7183143d290d319be7df76c258b/System/FilePath/Internal.hs#L1065-L1067

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\_\_`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.