Skip to content

Commit

Permalink
FS|libcore: Added method to query file type
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 235d011 commit e6fa8df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/libs/core/include/de/filesys/file.h
Expand Up @@ -263,6 +263,8 @@ class DE_PUBLIC File : public filesys::Node, public IIOStream, public IObject
*/
Status const &status() const;

inline File::Type type() const { return status().type(); }

/**
* Returns the size of the file.
*
Expand Down

0 comments on commit e6fa8df

Please sign in to comment.