mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-09 04:19:10 -04:00
feat(file_stat): add perm_string() and mode_string() instance methods
This commit is contained in:
parent
a8cf283d4e
commit
1c5f345181
@ -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 <typename T>
|
||||
void copy_to(T* out) const {
|
||||
copy_to_impl<true>(out);
|
||||
|
Loading…
x
Reference in New Issue
Block a user