From 1c5f3451812ae3aff37cc3272aedab843bd622d6 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Tue, 20 Aug 2024 10:18:25 +0200 Subject: [PATCH] feat(file_stat): add perm_string() and mode_string() instance methods --- include/dwarfs/file_stat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dwarfs/file_stat.h b/include/dwarfs/file_stat.h index 160158b1..93b84970 100644 --- a/include/dwarfs/file_stat.h +++ b/include/dwarfs/file_stat.h @@ -132,6 +132,9 @@ class file_stat { static std::string perm_string(mode_type mode); static std::string mode_string(mode_type mode); + std::string perm_string() const { return perm_string(mode()); } + std::string mode_string() const { return mode_string(mode()); } + template void copy_to(T* out) const { copy_to_impl(out);