microsoft / microsoft/STL

<filesystem>: std::filesystem::equivalent is not working properly for network mounted drives

Open
#3,365 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

duplicate
Dominant language
C++
Stars
11.1k
Forks
1.7k
Avg merge
4d 15h
Merged PRs (30d)
22

Description

Description
For linux nfs mounted on windows box, std::filesystem::equivalent is not working properly.

Test case

// L: is mounted network drive 
std::filesystem::current_path("L:\\folder");
bool mustBeAlwaysTrue = std::filesystem::equivalent("file.txt","file.txt");

Expected behavior
Variable mustBeAlwaysTrue expected to be true in all scenarios (When filenames are equal).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the std::filesystem::equivalent entry point and reproduce the provided case on a Linux NFS mount accessed from a Windows box. Compare the result for identical paths with the expected true value and trace the platform-specific filesystem behavior. Done means equivalent consistently returns true for the shown identical filenames in this environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.