C++ Logo

SG16

Advanced search

Subject: Re: [SG16-Unicode] filesystem::path_view::compare()
From: Thiago Macieira (thiago_at_[hidden])
Date: 2019-08-24 22:52:48


On Saturday, 24 August 2019 20:31:00 PDT Lyberta wrote:
> On the second thought, yes, a path component may be on exotic VFS that
> can't be known ahead of time. So there is a way to optimize for common
> cases like NTFS on Windows and EXT4 on Linux but no way to implement
> general case without calling the OS to do actual comparison every time.

Unless the OS exports that information in some form that the application can
use to compare. Of course, it needs to watch the directory to be sure that the
property didn't change.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products

SG16 list run by sg16-owner@lists.isocpp.org