5
6
10#include "Containers/Array.h"
11#include "Containers/UnrealString.h"
13#include "Misc/AssertionMacros.h"
14#include "Misc/DateTime.h"
15#include "Misc/EnumClassFlags.h"
16#include "Templates/Function.h"
19class IAsyncReadFileHandle;
20class IMappedFileHandle;
23
24
49
50
60
61
71
72
82
83
95
96
97
98
99 virtual bool Seek(int64 NewPosition) = 0;
102
103
104
105
109
110
111
112
113
114 virtual bool Read(uint8* Destination, int64 BytesToRead) = 0;
117
118
119
120
121
122 virtual bool Write(
const uint8* Source, int64 BytesToWrite) = 0;
125
126
127
128
129
130 virtual bool Flush(
const bool bFullFlush =
false) = 0;
133
134
135
136
140
141
155
156
205
206
218
219
220
221
227
228
229
230
237
238
239
246
247
248
249
250
254
255
259
260
264
265
269
270
274
275
280 GetLowerLevel()->AddLocalDirectories(LocalDirectories);
305 virtual bool DeleteFile(
const TCHAR* Filename) = 0;
309 virtual bool MoveFile(
const TCHAR* To,
const TCHAR* From) = 0;
311 virtual bool SetReadOnly(
const TCHAR* Filename,
bool bNewReadOnlyValue) = 0;
325
326
327
328
329
330
345 virtual bool CreateDirectory(
const TCHAR* Directory) = 0;
364
365
366
367
368
369 virtual bool Visit(
const TCHAR* FilenameOrDirectory,
bool bIsDirectory) = 0;
389
390
391
392
393
401
402
403
404
405
409
410
411
412
413
423
424
425
426
430
431
432
433
439
440
441
442
443
444
457
458
459
460
461
465
466
467
468
469
473
474
475
476
477
481
482
483
484
485
489
490
491
492
493
497
498
499
500
501
505
506
507
508
509
510
511 virtual void FindFiles(TArray<FString>& FoundFiles,
const TCHAR* Directory,
const TCHAR* FileExtension);
514
515
516
517
518
519
520 virtual void FindFilesRecursively(TArray<FString>& FoundFiles,
const TCHAR* Directory,
const TCHAR* FileExtension);
523
524
525
526
533
534
535
536
537
538
539
543
544
545
546
547
548
549 virtual bool CopyDirectoryTree(
const TCHAR* DestinationDirectory,
const TCHAR* Source,
bool bOverwriteAllExisting);
552
553
554
555
556
557
561
562
563
564
565
566
570
571
585
586
587
588
589
590
591
599
600
601
602
609
610
611
612
619
620
651
652
653
657
658
659
#define ENUM_CLASS_FLAGS(Enum)
virtual void ShrinkBuffers()
virtual bool Flush(const bool bFullFlush=false)=0
virtual bool Seek(int64 NewPosition)=0
virtual bool Read(uint8 *Destination, int64 BytesToRead)=0
virtual bool Truncate(int64 NewSize)=0
virtual bool Write(const uint8 *Source, int64 BytesToWrite)=0
virtual bool SeekFromEnd(int64 NewPositionRelativeToEnd=0)=0
virtual bool PakContains(const FString &Filename) const =0
virtual const FString & PakGetMountPoint() const =0
virtual int32 PakGetPakchunkIndex() const =0
virtual int32 GetNumFiles() const =0
virtual void PakVisitPrunedFilenames(IPlatformFile::FDirectoryVisitor &Visitor) const =0
virtual const FString & PakGetPakFilename() const =0
static FDateTime MinValue()
FFileStatData(FDateTime InCreationTime, FDateTime InAccessTime, FDateTime InModificationTime, const int64 InFileSize, const bool InIsDirectory, const bool InIsReadOnly)
FDateTime ModificationTime