Navigation
API > API/Developer > API/Developer/DirectoryWatcher
References
| Module | DirectoryWatcher |
| Header | /Engine/Source/Developer/DirectoryWatcher/Public/FileCache.h |
| Include | #include "FileCache.h" |
Syntax
struct FFileCacheConfig
Remarks
Configuration structure required to construct a FFileCache
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDetectChangesSinceLastRun | When true, changes to the directory since the cache shutdown will be detected and reported. | |
| FString | CacheFile | String specifying the file that the cache should be saved to. | |
| TFunction< TOptional< bool >const FImmutableString &, const FFileData &)> | CustomChangeLogic | User-specified custom change detection logic. | |
| FString | Directory | String specifying the directory on disk that the cache should reflect | |
| EPathType | PathType | Path type to return, relative to the directory or absolute. | |
| FMatchRules | Rules | List of rules which define what we will be watching |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FFileCacheConfig
(
FString InDirectory, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FFileCacheConfig & | DetectChangesFor
(
EChangeDetection ChangeType, |
Instruct the cache to report the specified changes to files | |
| FFileCacheConfig & | DetectMoves
(
bool bInDetectMoves |
Set up this cache to detect moves | |
| FFileCacheConfig & | RequireFileHashes
(
bool bInRequireFileHashes |
Set up this cache to generate MD5 hashes for its constituent files |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EChangeDetection | Enum that specifies what changes are required for a change to be reported. |