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
andipath
. The returned value can be used with thedb.getDoc()
method.