bool VideoScannerThread::buildFileList(const QString &directory, const QStringList &imageExtensions, FileCheckList &filelist) { LOG(VB_GENERAL,LOG_INFO, QString("buildFileList directory = %1") .arg(directory)); FileAssociations::ext_ignore_list ext_list; FileAssociations::getFileAssociation().getExtensionIgnoreList(ext_list); dirhandler<FileCheckList> dh(filelist, imageExtensions); return ScanVideoDirectory(directory, &dh, ext_list, m_ListUnknown); }
bool VideoScannerThread::buildFileList(const QString &directory, const QStringList &imageExtensions, FileCheckList &filelist) { // TODO: FileCheckList is a std::map, keyed off the filename. In the event // multiple backends have access to shared storage, the potential exists // for files to be scanned onto the wrong host. Add in some logic to prefer // the backend with the content stored in a storage group determined to be // local. LOG(VB_GENERAL,LOG_INFO, QString("buildFileList directory = %1") .arg(directory)); FileAssociations::ext_ignore_list ext_list; FileAssociations::getFileAssociation().getExtensionIgnoreList(ext_list); dirhandler<FileCheckList> dh(filelist, imageExtensions); return ScanVideoDirectory(directory, &dh, ext_list, m_ListUnknown); }