40 lines
886 B
C
40 lines
886 B
C
|
// EnumDirItems.h
|
||
|
|
||
|
#ifndef __ENUM_DIR_ITEMS_H
|
||
|
#define __ENUM_DIR_ITEMS_H
|
||
|
|
||
|
#include "Common/Wildcard.h"
|
||
|
#include "DirItem.h"
|
||
|
|
||
|
#include "Windows/FileFind.h"
|
||
|
|
||
|
void AddDirFileInfo(
|
||
|
const UString &prefix,
|
||
|
const UString &fullPathName,
|
||
|
const NWindows::NFile::NFind::CFileInfoW &fileInfo,
|
||
|
CObjectVector<CDirItem> &dirItems);
|
||
|
|
||
|
|
||
|
void EnumerateDirItems(
|
||
|
const UString &baseFolderPrefix,
|
||
|
const UStringVector &fileNames,
|
||
|
const UString &archiveNamePrefix,
|
||
|
CObjectVector<CDirItem> &dirItems,
|
||
|
UStringVector &errorPaths,
|
||
|
CRecordVector<DWORD> &errorCodes);
|
||
|
|
||
|
struct IEnumDirItemCallback
|
||
|
{
|
||
|
virtual HRESULT CheckBreak() { return S_OK; }
|
||
|
};
|
||
|
|
||
|
|
||
|
HRESULT EnumerateItems(
|
||
|
const NWildcard::CCensor &censor,
|
||
|
CObjectVector<CDirItem> &dirItems,
|
||
|
IEnumDirItemCallback *callback,
|
||
|
UStringVector &errorPaths,
|
||
|
CRecordVector<DWORD> &errorCodes);
|
||
|
|
||
|
#endif
|