* Unbroke Inode::IsDirectory() again, according to Axel's suggestion.

* Simplified Inode::IsContainer().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25165 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-04-25 21:17:45 +00:00
parent 4b8941b10b
commit 977d7846f5

View File

@ -50,9 +50,10 @@ class Inode {
status_t WriteBack(Transaction &transaction);
bool IsContainer() const
{ return (Mode() & (S_INDEX_DIR | S_ATTR_DIR)) || S_ISDIR(Mode()); }
bool IsDirectory() const
{ return S_ISDIR(Mode()); }
bool IsDirectory() const
{ return (Mode() & (S_INDEX_DIR | S_ATTR_DIR | S_IFDIR))
== S_IFDIR; }
bool IsIndex() const
{ return (Mode() & (S_INDEX_DIR | 0777)) == S_INDEX_DIR; }
// that's a stupid check, but AFAIK the only possible method...