11 #include "RNPlatform/Inc/MemoryTracking.h"
19 #include "RNPlatform/Inc/ThreadClass.h"
20 #include "RNPlatform/Inc/Thread.h"
22 namespace RNReplicaNet
46 FILETIME mLastWriteTime;
61 bool Start(
const char *path,std::list<Entry> &result,
const bool recurse =
false,
const bool justFiles =
true,
const bool multiThread =
false);
73 virtual bool CallbackUpdate(
const size_t numFiles,
const size_t numFolders);
79 static bool Write(
const char *path,
const std::list<Entry> &entries);
82 static bool Read(
const char *path,std::list<Entry> &entries);
86 int ThreadEntry(
void);
87 int RealThreadEntry(
const std::string path,std::list<Entry> &results,
const bool recurse,
const bool justFiles);
90 std::list<Entry> *mResult;
bool Start(const char *path, std::list< Entry > &result, const bool recurse=false, const bool justFiles=true, const bool multiThread=false)
static bool Write(const char *path, const std::list< Entry > &entries)
A utility function to write the entries to a file.
virtual bool CallbackUpdate(const size_t numFiles, const size_t numFolders)
unsigned int mSize
The size of the entry. This can be the length of the file or the size of the directory.
Definition: ScanPath.h:41
virtual void CallbackComplete(void)
A virtual callback that is triggered when the scanning is complete.
This scans a supplied path and stores the results.
Definition: ScanPath.h:29
Definition: ScanPath.h:32
std::string mName
The name of the entry.
Definition: ScanPath.h:40
An entry in the list updated by ScanPath::Start()
Definition: ScanPath.h:37
static bool Read(const char *path, std::list< Entry > &entries)
A utility function to read the entries from a file.
Definition: ThreadClass.h:96