* 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:
parent
4b8941b10b
commit
977d7846f5
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user