Flags

Details

class TrackerMiner.DirectoryFlags(value)

Bases: GLib.Flags

Flags used when adding a new directory to be indexed in the TrackerMiner.IndexingTree and TrackerMiner.DataProvider.

NONE = 0

No flags.

NO_STAT = 128

For cases where the content being crawled by the enumerator is not local (e.g. it’s on a server somewhere), use the TrackerMiner.DirectoryFlags.NO_STAT flag. The default is to use stat() and assume we’re mining a local or mounted file system.

IGNORE = 16

Should ignore the directory contents.

RECURSE = 2

Should recurse in the directory.

CHECK_DELETED = 256

Forces checks on deleted contents. This is most usually optimized away unless directory mtime changes indicate there could be deleted content.

PRESERVE = 32

Should preserve items in the directory even if the directory gets removed.

CHECK_MTIME = 4

Should check mtimes of items in the directory.

PRIORITY = 64

Internally a priority queue is used and this flag makes sure the directory is given a priority over other directories queued.

MONITOR = 8

Should setup monitors in the items found in the directory.