2 * Copyright 2013, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Ingo Weinhold <ingo_weinhold@gmx.de>
10 #include <mime/AppMetaMimeCreator.h>
12 #include <Directory.h>
21 // #pragma mark - DatabaseLocker
24 MimeEntryProcessor::DatabaseLocker::~DatabaseLocker()
29 // #pragma mark - MimeEntryProcessor
32 MimeEntryProcessor::MimeEntryProcessor(Database
* database
,
33 DatabaseLocker
* databaseLocker
, int32 force
)
36 fDatabaseLocker(databaseLocker
),
42 MimeEntryProcessor::~MimeEntryProcessor()
48 MimeEntryProcessor::DoRecursively(const entry_ref
& entry
)
50 bool entryIsDir
= false;
51 status_t error
= Do(entry
, &entryIsDir
);
57 error
= directory
.SetTo(&entry
);
62 while (directory
.GetNextRef(&childEntry
) == B_OK
)
63 DoRecursively(childEntry
);
71 } // namespace Storage
72 } // namespace BPrivate