From 010c988e012807e7c49eb8a5c8ffe88b42b3f730 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 31 Dec 2023 15:45:49 +0100 Subject: [PATCH] enhance: Add wrapper of std::filesystem::is_regular_file --- src/util/filesystem.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/filesystem.hpp b/src/util/filesystem.hpp index a7bd25772..ccee14b40 100644 --- a/src/util/filesystem.hpp +++ b/src/util/filesystem.hpp @@ -110,6 +110,7 @@ DEF_WRAP_0_R(current_path, path) DEF_WRAP_1_V(current_path, void, const path&, p) DEF_WRAP_1_P(exists, bool, const path&, p) DEF_WRAP_1_P(is_directory, bool, const path&, p) +DEF_WRAP_1_P(is_regular_file, bool, const path&, p) DEF_WRAP_1_R(read_symlink, path, const path&, p) DEF_WRAP_1_R(remove, bool, const path&, p) DEF_WRAP_1_R(remove_all, std::uintmax_t, const path&, p) -- 2.47.2