From 9e865ae4ff8889f73427679b50f21dfb4d35df03 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Thu, 19 Feb 2026 02:13:12 +0300 Subject: [PATCH] libutil: Drop superflous .string() in pathExists and pathAccessible --- src/libutil/file-system.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/file-system.cc b/src/libutil/file-system.cc index 4458a3a83..f4ed33ffe 100644 --- a/src/libutil/file-system.cc +++ b/src/libutil/file-system.cc @@ -262,13 +262,13 @@ std::optional maybeLstat(const std::filesystem::path & path) bool pathExists(const std::filesystem::path & path) { - return maybeLstat(path.string()).has_value(); + return maybeLstat(path).has_value(); } bool pathAccessible(const std::filesystem::path & path) { try { - return pathExists(path.string()); + return pathExists(path); } catch (SystemError & e) { // swallow EPERM if (e.is(std::errc::operation_not_permitted))