-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathScanDir.h
50 lines (42 loc) · 1.47 KB
/
ScanDir.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// This file is part of Par-N-Rar
// http://www.milow.net/site/projects/parnrar.html
//
// Copyright (c) Gil Milow
//
// Par-N-Rar is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// Par-N-Rar is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// This code may not be used to develop a RAR (WinRAR) compatible archiver.
//
#pragma once
#include <string>
#include "ParSettings.h"
using namespace std;
class ScanDir
{
public:
ScanDir(string sDirectory);
static void Start(string sDirectory);
virtual ~ScanDir(){};
string go();
protected:
string m_sDir; //Monitor Directory, with a backslash at the end
long m_lFound;
void Main();
static unsigned int __stdcall StartThread( void* pParam );
void ScanDirR(string sDir, bool bRecurse);
void ScanDirChildren(string sDir);
void CheckSingleDir(string sDir, string sType, vector<string> &vFilesInDir);
vector<string> GetFilesInDir(string sDir);
};