Skip to content

std::filesystem::canonical converts the mapped network drive to network path #5327

@atulrawat951

Description

@atulrawat951

or the below code:

std::error_code ec; auto long_path = std::filesystem::canonical("W:\\31\\arawat.fielsystem_default_check\\matlab\\check_std\\check_std\\").string();

I am getting the value of long path as:

"\\\\bgl-zp31-cifs\\vmgr\\sbs31\\arawat.fielsystem_default_check\\matlab\\check_std\\check_std"

std::filesystem::canonical is converting the path to a network path. Is there any way to prevent it or get the original drive letter path back from a network path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    filesystemC++17 filesystemquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions