<filesystem>: std::filesystem::equivalent is not working properly for network mounted drives
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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