boostorg / boostorg/filesystem

v4: `path::compare` should separately compare root-name, root-directory and relative-path

Open
#315 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
180
Forks
168
PR merge metrics
No merged PRs in 30d

Description

Currently, v3 and v4 perform path comparison element-wise, using iteration over path elements with iterators. This means that if one of the paths is missing root-name or root-directory, the algorithm may compare root-name or root-directory against a filename in the other path.

v4 should implement std::filesystem algorithm \[fs.path.compare\], which separately compares root-names, root-directories and then the elements of `relative_path()`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.