Skip to content

(Error .Net Core 5) "Directory.GetDirectories("D:")" returns not existingDirectory #68503

Closed
@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


String[] dirSSS = Directory.GetDirectories("D:");
dirSSS[0];             // Output:  "D:\ref" (without quotes) <-- no this directory on disk "D:"!
Environment.Version;   // "5.0.13" (Net Core)
Environment.OSVersion; // "Microsoft Windows NT 6.3.9600.0"
                       // VS (Russian):
                       //    Microsoft Visual Studio Professional&nbsp;2019
                       //    Версия 16.11.9

There is another theme with this error, but it closed:
https://developercommunity2.visualstudio.com/t/DirectoryGetDirectoriesdrive-return-a/175411?entry=suggestion&space=8&preview2=true


Original Comments

Feedback Bot on 3/21/2022, 00:32 AM:

(private comment, text removed)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions