From 13a6d3d5b03c36298ff5b8a4e9a2f5daa0d4fe0d Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Mon, 27 Dec 2021 14:51:57 +0900 Subject: [PATCH] Add boost_filesystem namespace at exists() Change-Id: I9c2c00e39efd01e09d827170c41d230fa88135c5 Signed-off-by: Sangyoon Jang --- src/common/utils/file_util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/utils/file_util.cc b/src/common/utils/file_util.cc index b965249..76ce1de 100644 --- a/src/common/utils/file_util.cc +++ b/src/common/utils/file_util.cc @@ -316,7 +316,7 @@ bool RemoveBackup(const bf::path& path) { } bool RemoveAll(const bf::path& path) { - if (!exists(path) && !bf::is_symlink(bf::symlink_status(path))) + if (!bf::exists(path) && !bf::is_symlink(bf::symlink_status(path))) return true; bs::error_code error; @@ -332,7 +332,7 @@ bool RemoveAll(const bf::path& path) { bool Remove(const bf::path& path) { bs::error_code error; - if (!exists(bf::symlink_status(path, error))) + if (!bf::exists(bf::symlink_status(path, error))) return true; bf::remove(path, error); -- 2.7.4