Add boost_filesystem namespace at exists() 74/268574/2
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 27 Dec 2021 05:51:57 +0000 (14:51 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 3 Jan 2022 02:35:19 +0000 (02:35 +0000)
Change-Id: I9c2c00e39efd01e09d827170c41d230fa88135c5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/common/utils/file_util.cc

index b965249..76ce1de 100644 (file)
@@ -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);