Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h |
Include |
#include "GenericPlatform/GenericPlatformFile.h" |
class IPlatformFile
File I/O Interface
Name | Description | |
---|---|---|
|
~IPlatformFile() |
Destructor. |
Name | Description | ||
---|---|---|---|
|
AddLocalDirectories |
Identifies any platform specific paths that are guaranteed to be local (i.e. cache, scratch space) |
|
|
BypassSecurity ( |
||
|
ConvertToAbsolutePathForExternalAppForRead ( |
Converts passed in filename to use an absolute path (for reading). |
|
|
ConvertToAbsolutePathForExternalAppForWrite ( |
Converts passed in filename to use an absolute path (for writing) |
|
|
CopyDirectoryTree |
Copy a file or a hierarchy of files (directory). |
|
|
CopyFile ( |
Copy a file. This will fail if the destination file already exists. |
|
|
CreateDirectory ( |
Create a directory and return true if the directory was created or already existed. |
|
|
CreateDirectoryTree ( |
Create a directory, including any parent directories and return true if the directory was created or already existed. |
|
|
DeleteDirectory ( |
Delete a directory and return true if the directory was deleted or otherwise does not exist. |
|
|
DeleteDirectoryRecursively ( |
Delete all files and subdirectories in a directory, then delete the directory itself |
|
|
DeleteFile ( |
Delete a file and return true if the file exists. Will not delete read only files. |
|
|
DirectoryExists ( |
Return true if the directory exists. |
|
|
DoesCreatePublicFiles() |
Checks to see if this file system creates publicly accessible files |
|
|
FileExists ( |
Return true if the file exists. |
|
|
FileSize ( |
Return the size of the file, or -1 if it doesn't exist. |
|
|
FindFiles |
Finds all the files within the given directory, with optional file extension filter |
|
|
FindFilesRecursively |
Finds all the files within the directory tree, with optional file extension filter |
|
|
GetAccessTimeStamp ( |
Return the last access time of a file. |
|
|
GetFilenameOnDisk ( |
For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem |
|
|
IPlatformFil... |
GetLowerLevel() |
Gets the platform file wrapped by this file. |
|
const TCHAR ... |
GetName() |
Gets this platform file type name. |
|
const TCHAR ... |
GetPhysicalTypeName() |
Returns the name of the physical platform file type. |
|
IPlatformFil... |
GetPlatformPhysical() |
Physical file system of the platform, never wrapped. |
|
FFileStatDat... |
GetStatData ( |
Return the stat data for the given file or directory. |
|
GetTimeStamp ( |
Return the modification time of a file. |
|
|
GetTimeStampLocal ( |
Return the modification time of a file in the local time of the calling code (GetTimeStamp returns UTC). |
|
|
GetTimeStampPair |
||
|
Initialize ( |
Initializes platform file. |
|
|
InitializeAfterProjectFilePath() |
Performs initialization of the platform file after the project path has been set. |
|
|
InitializeAfterSetActive() |
Performs initialization of the platform file after it has become the active (FPlatformFileManager.GetPlatformFile() will return this |
|
|
InitializeNewAsyncIO() |
Performs initialization of the platform file after the new async IO has been enabled |
|
|
IsReadOnly ( |
Return true if the file is read only. |
|
|
IsSandboxEnabled() |
Returns whether the sandbox is enabled or not |
|
|
IterateDirectory ( |
Call the visitor once for each file or directory in a single directory. |
|
|
IterateDirectory ( |
Call the Visit function of the visitor once for each file or directory in a single directory. |
|
|
IterateDirectoryRecursively ( |
Call the Visit function of the visitor once for each file or directory in a directory tree. |
|
|
IterateDirectoryRecursively ( |
Call the Visit function of the visitor once for each file or directory in a directory tree. |
|
|
IterateDirectoryStat ( |
Call the visitor once for each file or directory in a single directory. |
|
|
IterateDirectoryStat ( |
Call the Visit function of the visitor once for each file or directory in a single directory. |
|
|
IterateDirectoryStatRecursively ( |
Call the Visit function of the visitor once for each file or directory in a directory tree. |
|
|
IterateDirectoryStatRecursively ( |
Call the Visit function of the visitor once for each file or directory in a directory tree. |
|
|
MakeUniquePakFilesForTheseFiles |
Build an in memory unique pak file from a subset of files in this pak file |
|
|
MoveFile |
Attempt to move a file. Return true if successful. Will not overwrite existing files. |
|
|
IAsyncReadFi... |
OpenAsyncRead ( |
Open a file for async reading. This call does not hit the disk or block. |
|
IMappedFileH... |
OpenMapped ( |
Open a file for async reading. This call does hit the disk; it is synchronous open. |
|
IFileHandle ... |
OpenRead |
Attempt to open a file for reading. |
|
IFileHandle ... |
OpenReadNoBuffering |
|
|
IFileHandle ... |
OpenWrite |
Attempt to open a file for writing. |
|
SendMessageToServer ( |
Sends a message to the file server, and will block until it's complete. |
|
|
SetAsyncMinimumPriority ( |
Controls if the pak precacher should process precache requests. |
|
|
SetCreatePublicFiles ( |
Sets file system to create publicly accessible files or not |
|
|
SetLowerLevel ( |
Sets the platform file wrapped by this file. |
|
|
SetReadOnly |
Attempt to change the read only status of a file. Return true if successful. |
|
|
SetSandboxEnabled ( |
Set whether the sandbox is enabled or not |
|
|
SetTimeStamp |
Sets the modification time of a file |
|
|
ShouldBeUsed ( |
Checks if this platform file should be used even though it was not asked to be. |
|
|
Tick() |
Platform file can override this to get a regular tick from the engine |
Name |
Description |
|
---|---|---|
|
FDirectoryStatVisitor |
Base class for file and directory visitors that take all the stat data. |
|
FDirectoryVisitor |
Base class for file and directory visitors that take only the name. |
|
IFileServerMessageHandler |
Helper class to send/receive data to the file server function |
Name |
Description |
---|---|
FDirectoryStatVisitorFunc |
File and directory visitor function that takes all the stat data |
FDirectoryVisitorFunc |
File and directory visitor function that takes only the name |