6#include "Containers/UnrealString.h"
7#include "Misc/DateTime.h"
8#include "GenericPlatform/GenericPlatformFile.h"
45 virtual bool Poll(
float Fraction )=0;
78
79
80
81
82
83
84
85
89
90
91
92
93
94
95
96
108 virtual bool Delete(
const TCHAR* Filename,
bool RequireExists=0,
bool EvenReadOnly=0,
bool Quiet=0 )=0;
114 virtual bool Move(
const TCHAR* Dest,
const TCHAR* Src,
bool Replace=1,
bool EvenIfReadOnly=0,
bool Attributes=0,
bool bDoNotRetryOrError=0 )=0;
126 virtual bool DeleteDirectory(
const TCHAR* Path,
bool RequireExists=0,
bool Tree=0 )=0;
132 virtual void FindFiles( TArray<FString>& FileNames,
const TCHAR* Filename,
bool Files,
bool Directories)=0;
135
136
137
138
139
140
141
142
143
144 virtual void FindFiles(TArray<FString>& FoundFiles,
const TCHAR* Directory,
const TCHAR* FileExtension =
nullptr) = 0;
147 virtual void FindFilesRecursive( TArray<FString>& FileNames,
const TCHAR* StartDirectory,
const TCHAR* Filename,
bool Files,
bool Directories,
bool bClearFileNames=
true) = 0;
150
151
152
153
154
158
159
160
161
162
166
167
168
169
170
174
175
176
177
178
182
183
184
185
186
190
191
192
193
194
198
199
200
201
202
206
207
208
209
210
217
218
222
223
224
225
226
230
231
235
236
240
241
242
243
244
245
249
250
251
252
253
254
258
259
260
261
262
263
267
268
269
270
271
275
276
277
278
279
280
281
285
286
287
288
289
290
#define ALLOW_DEBUG_FILES
@ FILEWRITE_EvenIfReadOnly
@ FILEWRITE_NoReplaceExisting
virtual FArchive * CreateFileWriter(const TCHAR *Filename, uint32 WriteFlags=0)=0
virtual void FindFiles(TArray< FString > &FoundFiles, const TCHAR *Directory, const TCHAR *FileExtension=nullptr)=0
virtual FDateTime GetTimeStamp(const TCHAR *Path)=0
virtual void ProcessCommandLineOptions()=0
virtual FString ConvertToRelativePath(const TCHAR *Filename)=0
virtual bool IterateDirectoryRecursively(const TCHAR *Directory, IPlatformFile::FDirectoryVisitorFunc Visitor)=0
virtual bool Move(const TCHAR *Dest, const TCHAR *Src, bool Replace=1, bool EvenIfReadOnly=0, bool Attributes=0, bool bDoNotRetryOrError=0)=0
virtual FArchive * CreateFileReader(const TCHAR *Filename, uint32 ReadFlags=0)=0
virtual bool IterateDirectoryStatRecursively(const TCHAR *Directory, IPlatformFile::FDirectoryStatVisitorFunc Visitor)=0
virtual bool IterateDirectoryStat(const TCHAR *Directory, IPlatformFile::FDirectoryStatVisitorFunc Visitor)=0
virtual bool IterateDirectory(const TCHAR *Directory, IPlatformFile::FDirectoryVisitorFunc Visitor)=0
virtual bool MakeDirectory(const TCHAR *Path, bool Tree=0)=0
virtual bool DeleteDirectory(const TCHAR *Path, bool RequireExists=0, bool Tree=0)=0
virtual FString ConvertToAbsolutePathForExternalAppForWrite(const TCHAR *Filename)=0
virtual uint32 Copy(const TCHAR *Dest, const TCHAR *Src, bool Replace=1, bool EvenIfReadOnly=0, bool Attributes=0, FCopyProgress *Progress=nullptr, EFileRead ReadFlags=FILEREAD_None, EFileWrite WriteFlags=FILEWRITE_None)=0
static IFileManager & Get()
virtual bool DirectoryExists(const TCHAR *InDirectory)=0
virtual void SetSandboxEnabled(bool bInEnabled)=0
virtual FString GetFilenameOnDisk(const TCHAR *Filename)=0
virtual bool FileExists(const TCHAR *Filename)=0
virtual FDateTime GetAccessTimeStamp(const TCHAR *Filename)=0
virtual FFileStatData GetStatData(const TCHAR *FilenameOrDirectory)=0
virtual bool IterateDirectoryStatRecursively(const TCHAR *Directory, IPlatformFile::FDirectoryStatVisitor &Visitor)=0
virtual double GetFileAgeSeconds(const TCHAR *Filename)=0
virtual bool SetTimeStamp(const TCHAR *Path, FDateTime TimeStamp)=0
virtual bool IterateDirectoryRecursively(const TCHAR *Directory, IPlatformFile::FDirectoryVisitor &Visitor)=0
virtual FString ConvertToAbsolutePathForExternalAppForRead(const TCHAR *Filename)=0
virtual int64 FileSize(const TCHAR *Filename)=0
virtual void FindFiles(TArray< FString > &FileNames, const TCHAR *Filename, bool Files, bool Directories)=0
virtual bool IsReadOnly(const TCHAR *Filename)=0
virtual void GetTimeStampPair(const TCHAR *PathA, const TCHAR *PathB, FDateTime &OutTimeStampA, FDateTime &OutTimeStampB)=0
virtual bool IsSandboxEnabled() const =0
virtual bool IterateDirectoryStat(const TCHAR *Directory, IPlatformFile::FDirectoryStatVisitor &Visitor)=0
virtual void FindFilesRecursive(TArray< FString > &FileNames, const TCHAR *StartDirectory, const TCHAR *Filename, bool Files, bool Directories, bool bClearFileNames=true)=0
virtual bool IterateDirectory(const TCHAR *Directory, IPlatformFile::FDirectoryVisitor &Visitor)=0
virtual bool SendMessageToServer(const TCHAR *Message, IPlatformFile::IFileServerMessageHandler *Handler)=0
virtual bool Delete(const TCHAR *Filename, bool RequireExists=0, bool EvenReadOnly=0, bool Quiet=0)=0
virtual bool Poll(float Fraction)=0