2019-07-28 10:31:56 +08:00
|
|
|
|
#pragma once
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
#ifndef KB
|
|
|
|
|
#define KB (1024)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef MB
|
|
|
|
|
#define MB (KB * 1024)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
class CScanDir
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CScanDir(const char* path, BOOL nested);
|
|
|
|
|
~CScanDir(void);
|
|
|
|
|
protected:
|
|
|
|
|
char* m_pDirPath;
|
|
|
|
|
BOOL m_nested;
|
|
|
|
|
public:
|
|
|
|
|
int BeginScan(void);
|
|
|
|
|
private:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// ɨ<><C9A8><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
int m_nFile, m_nDir;
|
|
|
|
|
__int64 m_nSize;
|
|
|
|
|
public:
|
|
|
|
|
int FileCount(void);
|
|
|
|
|
int DirCount(void);
|
|
|
|
|
__int64 TotalSize(void);
|
|
|
|
|
int BeginRemove(void);
|
|
|
|
|
};
|