| TSharedFromThis
|
Module |
|
Header |
/Engine/Source/Developer/DirectoryWatcher/Public/FileCache.h |
Include |
#include "FileCache.h" |
struct FAsyncDirectoryReader : public DirectoryWatcher::IAsyncFileCacheTask
Class responsible for 'asynchronously' scanning a folder for files and timestamps. Example usage: FAsyncDirectoryReader Reader(TEXT("C:\Path"), EPathType::Relative);
while(!Reader.IsComplete()) { FPlatformProcess::Sleep(1); Reader.Tick(FTimedSignal(1)); // Do 1 second of work } TOptional<FDirectoryState> State = Reader.GetFinalState();
Name | Description | |
---|---|---|
|
FAsyncDirectoryReader |
Constructor that sets up the directory reader to the specified directory |
Name | Description | ||
---|---|---|---|
|
GetCachedState() |
Retrieve the cached state supplied to this class through UseCachedState(). |
|
|
GetFilesThatNeedHashing() |
Retrieve the cached state supplied to this class through UseCachedState(). |
|
|
GetLiveState() |
Get the state of the directory once finished. |
|
|
SetMatchRules ( |
Set what files are relevant to this reader. |
|
|
UseCachedState ( |
Instruct the directory reader to use the specified cached state to lookup file hashes, where timestamps haven't changed |
Name | Description | ||
---|---|---|---|
|
IsComplete() |
Returns true when this directory reader has finished scanning the directory |
|
|
EProgressRes... |
Tick ( |
Tick this reader (discover new directories / files). Returns progress state. |