policy: add "most shared path" policies

Like path preserving but walks back the path till a match is found. Should
cover the usecase where someone wants a "less strict" form of path
preservation.
This commit is contained in:
Antonio SJ Musumeci 2020-07-16 21:52:06 -04:00
parent d4eecf3b56
commit 3ec137c4ad
11 changed files with 696 additions and 69 deletions

View file

@ -29,7 +29,7 @@ namespace fs
{
namespace path
{
string
string
dirname(const char *path_)
{
string path(path_);