The fsudi module

The fsudi module contains a single method, which duplicates the code used by the main filesystem indexer to derive an UDI from a filesystem path. In turn, this allows external code to call the getDoc() method to retrieve the Doc object. This can be useful, for example, for updating the metadata without fully reindexing the document.

fsudi.fs_udi(path, ipath='')

Obtain the UDI value for the given path and ipath. The returned value can be used with the db.getDoc() method.