migrateDocuments

fun migrateDocuments(newPath: String?, documents: List<Document>)

Migrates all pdf files to directory specified in preferences PreferencesConstants.EXTERNAL_DIR or default directory Constants.DEFAULT_EXTERNAL_DIR_NAME or from external directory to internal application document directories.

Use from BG thread only.

Parameters

newPath

new directory path. If null then files will be moved to internal application document directories

documents

list of document which will be moved