Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
LocalTimestampDirectoryVisitor.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
6#include "Containers/Map.h"
7#include "Containers/UnrealString.h"
8#include "CoreTypes.h"
9#include "GenericPlatform/GenericPlatformFile.h"
10#include "HAL/PlatformFile.h"
11#include "Misc/DateTime.h"
12
13struct FDateTime;
14
15/**
16 * Visitor to gather local files with their timestamps.
17 */
20{
21public:
22
23 /** Relative paths to local files and their timestamps. */
25
26 /**
27 * Creates and initializes a new instance.
28 *
29 * @param InFileInterface - The platform file interface to use.
30 * @param InDirectoriesToIgnore - The list of directories to ignore.
31 * @param InDirectoriesToNotRecurse - The list of directories to not visit recursively.
32 * @param bInCacheDirectories - Whether to cache the directories.
33 * @param bInMakeLowerCase - Whether to lower case filenames and directories.
34 */
35 FLocalTimestampDirectoryVisitor( IPlatformFile& InFileInterface, const TArray<FString>& InDirectoriesToIgnore, const TArray<FString>& InDirectoriesToNotRecurse, bool bInCacheDirectories = false, bool bInMakeLowerCase = false );
36
37public:
38
39 // IPlatformFile::FDirectoryVisitor interface
40
41 virtual bool Visit(const TCHAR* FilenameOrDirectory, bool bIsDirectory);
42
43private:
44
45 // true if we want directories in this list. */
47
48 // true if all filenames and directories should be lower cased. */
50
51 // Holds a list of directories that we should not traverse into. */
53
54 // Holds a list of directories that we should only go one level into. */
56
57 // Holds the file interface to use for any file operations. */
59};
FLocalTimestampDirectoryVisitor(IPlatformFile &InFileInterface, const TArray< FString > &InDirectoriesToIgnore, const TArray< FString > &InDirectoriesToNotRecurse, bool bInCacheDirectories=false, bool bInMakeLowerCase=false)
virtual bool Visit(const TCHAR *FilenameOrDirectory, bool bIsDirectory)