Use access() instead of std::filesystem::exists() 73/316873/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 29 Aug 2024 22:42:28 +0000 (07:42 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 29 Aug 2024 22:42:28 +0000 (07:42 +0900)
commit66109bfdd0178ac01dda8e5c0f0fa1da0621eb19
tree08b76f2452a1918996f636c87d6a53b75da81c68
parentb98a859a2548aba2abcc98defe546bf02017d4bb
Use access() instead of std::filesystem::exists()

This patch uses access() instead of std::filesystem::exists().
The std::filesystem::exists() can throw the exception. And, it use
stat() internally. From a performance point, it's better to use access.

Change-Id: Ifea946bb64d0470ec4a0ecbcb68cf65e12058a99
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/launchpad-glib/util.cc