Skip to content

isValid "\\\\?\\UNC\\" #191

Open
Open
@Bodigrim

Description

@Bodigrim
> 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\_\_?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions