Added remaining functionality to document indexing (filesystem rebuild, better warning reporting)
This commit is contained in:
8
apps/document_indexing/os_agnostic.py
Normal file
8
apps/document_indexing/os_agnostic.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from document_indexing.conf.settings import SUFFIX_SEPARATOR
|
||||
|
||||
|
||||
def assemble_document_filename(document, suffix=0):
|
||||
if suffix:
|
||||
return SUFFIX_SEPARATOR.join([document.file_filename, unicode(suffix)])
|
||||
else:
|
||||
return document.file_filename
|
||||
Reference in New Issue
Block a user