FFileCacheConfig

Configuration structure required to construct a [FFileCache](API\Developer\DirectoryWatcher\FFileCache)

Windows
MacOS
Linux

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

Name Description

Public variable

bool

 

bDetectChangesSinceLastRun

When true, changes to the directory since the cache shutdown will be detected and reported.

Public variable

FString

 

CacheFile

String specifying the file that the cache should be saved to.

Public variable

TFunction< TOpt...

 

CustomChangeLogic

User-specified custom change detection logic.

Public variable

FString

 

Directory

String specifying the directory on disk that the cache should reflect

Public variable

EPathType

 

PathType

Path type to return, relative to the directory or absolute.

Public variable

FMatchRules

 

Rules

List of rules which define what we will be watching

Constructors

Name Description

Public function

FFileCacheConfig

(
    FString InDirectory,
    FString InCacheFile
)

Functions

Name Description

Public function

FFileCacheCo...

 

DetectChangesFor

(
    EChangeDetection ChangeType,
    bool Value
)

Instruct the cache to report the specified changes to files

Public function

FFileCacheCo...

 

DetectMoves

(
    bool bInDetectMoves
)

Set up this cache to detect moves

Public function

FFileCacheCo...

 

RequireFileHashes

(
    bool bInRequireFileHashes
)

Set up this cache to generate MD5 hashes for its constituent files

Enums

Name

Description

Public enum

EChangeDetection

Enum that specifies what changes are required for a change to be reported.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss