Relocated directory determining code to a more appropriate location.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1330 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder 2002-10-01 07:35:01 +00:00
parent a551958795
commit a43a7a8d11
1 changed files with 2 additions and 2 deletions

View File

@ -41,6 +41,8 @@ UpdateMimeInfoThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir)
if (!err)
err = node.SetTo(entry);
if (!err && entryIsDir)
*entryIsDir = node.IsDirectory();
if (!err && !fForce) {
// If not forced, only update if the entry has no file type attribute
attr_info info;
@ -62,8 +64,6 @@ UpdateMimeInfoThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir)
err = (bytes != len ? B_FILE_ERROR : B_OK);
}
}
if (!err && entryIsDir)
*entryIsDir = node.IsDirectory();
return err;
}