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:
@@ -41,6 +41,8 @@ UpdateMimeInfoThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir)
|
|||||||
|
|
||||||
if (!err)
|
if (!err)
|
||||||
err = node.SetTo(entry);
|
err = node.SetTo(entry);
|
||||||
|
if (!err && entryIsDir)
|
||||||
|
*entryIsDir = node.IsDirectory();
|
||||||
if (!err && !fForce) {
|
if (!err && !fForce) {
|
||||||
// If not forced, only update if the entry has no file type attribute
|
// If not forced, only update if the entry has no file type attribute
|
||||||
attr_info info;
|
attr_info info;
|
||||||
@@ -62,8 +64,6 @@ UpdateMimeInfoThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir)
|
|||||||
err = (bytes != len ? B_FILE_ERROR : B_OK);
|
err = (bytes != len ? B_FILE_ERROR : B_OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!err && entryIsDir)
|
|
||||||
*entryIsDir = node.IsDirectory();
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user