Skip to content

.Net Core Directory.GetFiles() operates webDav path #46723

Closed
@MaChao9914

Description

@MaChao9914

When .net core system.io Directory.GetFiles() operates \\xxx.xx.xx.x@88\DavWWWRoot\Doclib, there will be an extra'\0' at the end of the file path string, such as "\\xxx .xx.xx.x@88\DavWWWRoot\DocLib\TeamViewer_Setup.exe1\0", and then use File.ReadAllBytes() to read content and an error occurred: System.ArgumentException:“Illegal characters in path. ”, but this will not happen in the .net framework.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions