diff options
Diffstat (limited to 'butl/filesystem.ixx')
-rw-r--r-- | butl/filesystem.ixx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/butl/filesystem.ixx b/butl/filesystem.ixx index 7aa3622..2d2690f 100644 --- a/butl/filesystem.ixx +++ b/butl/filesystem.ixx @@ -9,16 +9,16 @@ namespace butl inline entry_type dir_entry:: type () const { - return t_ != entry_type::unknown ? t_ : (t_ = type (false)); + entry_type t (ltype ()); + return t != entry_type::symlink + ? t + : lt_ != entry_type::unknown ? lt_ : (lt_ = type (true)); } inline entry_type dir_entry:: ltype () const { - entry_type t (type ()); - return t != entry_type::symlink - ? t - : lt_ != entry_type::unknown ? lt_ : (lt_ = type (true)); + return t_ != entry_type::unknown ? t_ : (t_ = type (false)); } // dir_iterator |