C++ Logo

sg16

Advanced search

Re: [SG16-Unicode] filesystem::path_view::compare()

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 24 Aug 2019 20:52:48 -0700
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

Received on 2019-08-25 05:52:52