-
Notifications
You must be signed in to change notification settings - Fork 32
/
Scanner.h
37 lines (34 loc) · 1.24 KB
/
Scanner.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
#pragma once
class CScannerOptions {
public:
bool console;
bool verbose;
std::vector<std::wstring> excludedDrives;
std::vector<std::wstring> excludedDirectories;
std::vector<std::wstring> excludedFiles;
int64_t maxFileSize;
std::wstring tempDirectory;
std::vector<std::wstring> knownTarExtensions;
std::vector<std::wstring> knownGZipTarExtensions;
std::vector<std::wstring> knownBZipTarExtensions;
std::vector<std::wstring> knownZipExtensions;
CScannerOptions() {
console = false;
verbose = false;
excludedDrives.clear();
excludedDirectories.clear();
excludedFiles.clear();
maxFileSize = 0;
tempDirectory.clear();
knownTarExtensions.clear();
knownGZipTarExtensions.clear();
knownBZipTarExtensions.clear();
knownZipExtensions.clear();
}
};
int32_t ScanFile(CScannerOptions& options, std::wstring file, std::wstring file_physical);
int32_t ScanDirectory(CScannerOptions& options, std::wstring directory, std::wstring directory_physical);
int32_t ScanLocalDrives(CScannerOptions& options);
int32_t ScanNetworkDrives(CScannerOptions& options);
int32_t ScanLocalDrivesInclMountpoints(CScannerOptions& options);
int32_t ScanPrepareEnvironment(CScannerOptions& options);