]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
enhance: Add wrapper of std::filesystem::is_regular_file
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 31 Dec 2023 14:45:49 +0000 (15:45 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 7 Jan 2024 08:57:37 +0000 (09:57 +0100)
src/util/filesystem.hpp

index a7bd257722493d442e9f68e7b20904d71508fd51..ccee14b40d62bcc7377d78d260ec6fd415c33db9 100644 (file)
@@ -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)