![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GenericPlatformFile.h>
Inheritance diagram for IPlatformFile:Classes | |
| class | FDirectoryStatVisitor |
| class | FDirectoryVisitor |
| class | IFileServerMessageHandler |
Public Types | |
| enum class | EOpenReadFlags : uint8 { None = 0 , AllowWrite = 1 << 0 , AllowDelete = 1 << 1 , NoBuffering = 1 << 2 } |
| enum class | EOpenWriteFlags : uint8 { None = 0 , AllowRead = 1 << 0 , Append = 1 << 1 } |
| typedef TFunctionRef< bool(const TCHAR *, bool)> | FDirectoryVisitorFunc |
| typedef TFunctionRef< bool(const TCHAR *, const FFileStatData &)> | FDirectoryStatVisitorFunc |
| typedef TFunctionRef< bool(const TCHAR *, const FFileJournalData &)> | FDirectoryJournalVisitorFunc |
Static Public Member Functions | |
| static CORE_API IPlatformFile & | GetPlatformPhysical () |
| static CORE_API const TCHAR * | GetPhysicalTypeName () |
File I/O Interface
| typedef TFunctionRef<bool(const TCHAR*, const FFileJournalData&)> IPlatformFile::FDirectoryJournalVisitorFunc |
File and directory visitor function that takes FileJournal data.
| typedef TFunctionRef<bool(const TCHAR*, const FFileStatData&)> IPlatformFile::FDirectoryStatVisitorFunc |
File and directory visitor function that takes all the stat data
File and directory visitor function that takes only the name
|
strong |
Flags to be used when opening a file for reading via IPlatformFile::OpenRead
|
strong |
|
default |
Constructor/Destructor.
|
virtualdefault |
|
inlinevirtual |
Identifies any platform specific paths that are guaranteed to be local (i.e. cache, scratch space)
|
virtual |
Converts passed in filename to use an absolute path (for reading).
| Filename | filename to convert to use an absolute path, safe to pass in already using absolute path |
Reimplemented in IAndroidPlatformFile, FCachedReadPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
|
virtual |
Converts passed in filename to use an absolute path (for writing)
| Filename | filename to convert to use an absolute path, safe to pass in already using absolute path |
Reimplemented in IAndroidPlatformFile, FCachedReadPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
|
virtual |
Copy a file or a hierarchy of files (directory).
| DestinationDirectory | Target path (either absolute or relative) to copy to - always a directory! (e.g. "/home/dest/"). |
| Source | Source file (or directory) to copy (e.g. "/home/source/stuff"). |
| bOverwriteAllExisting | Whether to overwrite everything that exists at target |
Reimplemented in FCachedReadPlatformFile, and FPlatformFileOpenLog.
|
virtual |
Copy a file. This will fail if the destination file already exists.
| To | File to copy to. |
| From | File to copy from. |
| ReadFlags | Source file read options. |
| WriteFlags | Destination file write options. |
Reimplemented in FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, and FStreamingNetworkPlatformFile.
Create a directory and return true if the directory was created or already existed.
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
Create a directory, including any parent directories and return true if the directory was created or already existed.
Reimplemented in FCachedReadPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, and FStreamingNetworkPlatformFile.
Delete a directory and return true if the directory was deleted or otherwise does not exist.
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
Delete all files and subdirectories in a directory, then delete the directory itself
| Directory | The directory to delete. |
Reimplemented in FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, and FStreamingNetworkPlatformFile.
Delete a file and return true if the file exists. Will not delete read only files.
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
|
inlinevirtual |
Delete an array of files and return true if ALL deletes are succeeded.
Return true if the directory exists.
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, FStreamingNetworkPlatformFile, and IAndroidPlatformFile.
Checks to see if this file system creates publicly accessible files
Reimplemented in FIOSPlatformFile.
Return true if the file exists.
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and IAndroidPlatformFile.
|
virtual |
Return the data for the given path as with GetStatData, but report a FFileJournalData instead, which notably includes the FFileJournalFileHandle for the file/directory. Check the FFileJournalData::bIsValid member before using the returned data
Reimplemented in FWindowsPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, and FPlatformFileOpenLog.
|
virtual |
Report the current end of the journal for the given volume, to be used as the StartingJournalEntry in FileJournalGetModifiedDirectories. If !FileJournalIsAvaiable for the given volume, sets OutEntryHandle to FileJournalEntryHandleInvalid. Returns EFileJournalResult::Success if successful, otherwise an error code and optionally a user-displayable explanation for the error code.
Reimplemented in FWindowsPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, and FPlatformFileOpenLog.
|
virtual |
Return the maximum size of the FileJournal for the specified VolumeName, if available, zero otherwise. Optionally returns a user-displayable string for why the journal is not available and a severity level for the reason. VolumeName may be a VolumeName as returned by FileJournalGetVolumeName or any path to a file or directory on the Volume.
Reimplemented in FWindowsPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, and FPlatformFileOpenLog.
|
virtual |
Return the VolumeSpecifier present in the given path. Returns empty string if path does not have a valid volume specifier for use by the FileJournal (e.g. some platforms do not support \paths for FileJournal).
Reimplemented in FWindowsPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, and FPlatformFileOpenLog.
|
virtual |
Return whether FileJournal functionality is available on the current platform if VolumeName is nullptr or for the given Volume if VolumeName is non-null. Optionally returns a user-displayable string for why it is not available and a severity level for the reason. VolumeName may be a VolumeName as returned by FileJournalGetVolumeName or any path to a file or directory on the Volume.
Reimplemented in FWindowsPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, and FPlatformFileOpenLog.
|
virtual |
Iterate the given directory as with IterateDirectoryStat, but report a FFileJournalData for each file and directory, which notably includes the FFileJournalFileHandle for the file/directory.
The paths returned as the first argument of the visitor function are the combined paths produced by combining the input directory with the relative path of the child file or directory.
If the FileJournal is unavailable on the current system the iteration will still succeed but the FFileJournalFileHandle for each child path will be set to FileJournalFileHandleInvalid.
If the FileJournal is available on the current system but not on the volume of the given directory, it is arbitrary whether the FFileJournalFileHandle will be validly set; if not valid they will be set to FileJournalFileHandleInvalid.
Reimplemented in FWindowsPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, and FPlatformFileOpenLog.
|
virtual |
Query the FileJournal to find a list of all directories on the given volume with files that have been added, deleted, or modified in the specified time range. The beginning of the time range is specified by JournalIdOfStartingEntry and StartingJournalEntry, which came from FileJournalGetLatestEntry or a previous call to FileJournalReadModified. The end of the range is the latest modification on the volume. VolumeName can be the return value from FileJournalGetVolumeName, or any path on the desired volume.
The caller must provide the mapping from FFileJournalFileHandle to DirectoryName; the FFileJournalFileHandle for each Directory can be found from FileJournalGetFileData or FileJournalIterateDirectory.
Modified directories are appended into OutModifiedDirectories, and the next FileJournal entry to scan is written into OutNextJournalEntry.
Returns EFileJournalResult::Success if successful, otherwise an error code and optionally a user-displayable explanation for the error code. In an error case, partial results may still be written into the output.
Reimplemented in FWindowsPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, and FPlatformFileOpenLog.
Return the size of the file, or -1 if it doesn't exist.
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and IAndroidPlatformFile.
|
virtual |
Finds all the files within the given directory, with optional file extension filter
| Directory | The directory to iterate the contents of |
| FileExtension | If FileExtension is NULL, or an empty string "" then all files are found. Otherwise FileExtension can be of the form .EXT or just EXT and only files with that extension will be returned. |
Reimplemented in FCachedReadPlatformFile, and FPakPlatformFile.
|
virtual |
Finds all the files within the directory tree, with optional file extension filter
| Directory | The starting directory to iterate the contents. This function explores subdirectories |
| FileExtension | If FileExtension is NULL, or an empty string "" then all files are found. Otherwise FileExtension can be of the form .EXT or just EXT and only files with that extension will be returned. |
Reimplemented in FCachedReadPlatformFile, and FPakPlatformFile.
Return the last access time of a file. Returns FDateTime::MinValue() on failure
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
|
inlinevirtual |
Returns the number of bytes that are currently allowed to be written to throttled write storage (if the platform has such restrictions)
| DestinationPath | If specified, the file system can optionally take into account the destination of the file to determine the current limit |
For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, and FStorageServerPlatformFile.
|
pure virtual |
Gets the platform file wrapped by this file.
Implemented in IPhysicalPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
Gets this platform file type name.
Implemented in IPhysicalPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
|
static |
Returns the name of the physical platform file type.
|
static |
Physical file system of the platform, never wrapped.
iOS platform file declaration
|
pure virtual |
Return the stat data for the given file or directory. Check the FFileStatData::bIsValid member before using the returned data
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and IAndroidPlatformFile.
Return the modification time of a file. Returns FDateTime::MinValue() on failure
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
Return the modification time of a file in the local time of the calling code (GetTimeStamp returns UTC). Returns FDateTime::MinValue() on failure
|
virtual |
Reimplemented in FPakPlatformFile, and FNetworkPlatformFile.
|
inlinevirtual |
Determine if the file has been downloaded from a web browser, based on platform-specific metadata.
| Filename | The file to check if it has a mark of the web. |
| OutSourceURL | An optional pointer to return a source url if available. |
Reimplemented in FWindowsPlatformFile.
|
pure virtual |
Initializes platform file.
| Inner | Platform file to wrap by this file. |
| CmdLine | Command line to parse. |
Implemented in IPhysicalPlatformFile, FNetworkPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, and FPakPlatformFile.
Performs initialization of the platform file after the project path has been set.
Reimplemented in FStorageServerPlatformFile.
Performs initialization of the platform file after it has become the active (FPlatformFileManager.GetPlatformFile() will return this
Reimplemented in FNetworkPlatformFile, and FStreamingNetworkPlatformFile.
Performs initialization of the platform file after the new async IO has been enabled
Reimplemented in FPakPlatformFile.
Return true if the file is read only.
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
Returns whether the sandbox is enabled or not
Reimplemented in FSandboxPlatformFile.
|
inlinevirtual |
Return true if the file is a symbolic link
Reimplemented in FWindowsPlatformFile, FApplePlatformFile, FUnixPlatformFile, and FPakPlatformFile.
|
pure virtual |
Call the Visit function of the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
| Directory | The directory to iterate the contents of. |
| Visitor | Visitor to call for each element of the directory |
Implemented in FWindowsPlatformFile, FApplePlatformFile, FIOSPlatformFile, FUnixPlatformFile, FStorageServerPlatformFile, IAndroidPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FPakPlatformFile, FSandboxPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, and FStreamingNetworkPlatformFile.
|
virtual |
Call the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
| Directory | The directory to iterate the contents of. |
| Visitor | Visitor to call for each element of the directory (see FDirectoryVisitor::Visit for the signature) |
Reimplemented in IAndroidPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FPakPlatformFile, and FSandboxPlatformFile.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
| Directory | The directory to iterate the contents of, recursively. |
| Visitor | Visitor to call for each element of the directory and each element of all subdirectories. |
Reimplemented in FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, and FStreamingNetworkPlatformFile.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
| Directory | The directory to iterate the contents of, recursively. |
| Visitor | Visitor to call for each element of the directory and each element of all subdirectories (see FDirectoryVisitor::Visit for the signature). |
Reimplemented in FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FPakPlatformFile, and FSandboxPlatformFile.
|
pure virtual |
Call the Visit function of the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
| Directory | The directory to iterate the contents of. |
| Visitor | Visitor to call for each element of the directory |
Implemented in FWindowsPlatformFile, FApplePlatformFile, FIOSPlatformFile, FUnixPlatformFile, FStorageServerPlatformFile, IAndroidPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FPakPlatformFile, FSandboxPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, and FSandboxPlatformFile.
|
virtual |
Call the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
| Directory | The directory to iterate the contents of. |
| Visitor | Visitor to call for each element of the directory (see FDirectoryStatVisitor::Visit for the signature) |
Reimplemented in IAndroidPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FPakPlatformFile, and FSandboxPlatformFile.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
| Directory | The directory to iterate the contents of, recursively. |
| Visitor | Visitor to call for each element of the directory and each element of all subdirectories. |
Reimplemented in FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FPakPlatformFile, FSandboxPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, and FSandboxPlatformFile.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
| Directory | The directory to iterate the contents of, recursively. |
| Visitor | Visitor to call for each element of the directory and each element of all subdirectories (see FDirectoryStatVisitor::Visit for the signature). |
Reimplemented in FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FPakPlatformFile, and FSandboxPlatformFile.
|
inlinevirtual |
Build an in memory unique pak file from a subset of files in this pak file
Reimplemented in FPakPlatformFile.
Attempt to move a file. Return true if successful. Will not overwrite existing files.
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
|
virtual |
Open a file for async reading. This call does not hit the disk or block.
| Filename | file to be opened |
| bAllowWrite | (applies to certain platforms only) whether this file is allowed to be written to by other processes. This flag is needed to open files that are currently being written to as well. |
Reimplemented in FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FPakPlatformFile, and FSandboxPlatformFile.
|
virtual |
Open a file for async reading. This call does not hit the disk or block.
| Flags | Allows specialization of the open operation, |
|
virtual |
Open a file for async reading. This call does hit the disk; it is synchronous open.
| Filename | File to be mapped. This doesn't actually map anything, just opens the file. |
Reimplemented in FSandboxPlatformFile.
|
virtual |
Open a file for async reading. This call does hit the disk; it is synchronous open.
| Filename | File to be mapped. This doesn't actually map anything, just opens the file. |
| OpenOptions | Allows specifying map to be writable via AllowWrite or be ReadOnly by deafault. |
Reimplemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FUnixPlatformFile, FPakPlatformFile, FSandboxPlatformFile, and FStorageServerPlatformFile.
|
pure virtual |
Attempt to open a file for reading. Please consider using the new overload that takes EReadFlags instead of bools as parameters.
| Filename | file to be opened |
| bAllowWrite | (applies to certain platforms only) whether this file is allowed to be written to by other processes. This flag is needed to open files that are currently being written to as well. |
Implemented in FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FWindowsPlatformFile, FApplePlatformFile, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
|
virtual |
Open a file handle for reading.
| Filename | The file to be opened |
| Flags | Allows specialization of the open operation, |
Reimplemented in FWindowsPlatformFile.
|
inlinevirtual |
Reimplemented in FWindowsPlatformFile.
|
inlinevirtual |
Reimplemented in FWindowsPlatformFile.
|
pure virtual |
Attempt to open a file for writing. If successful will return a non-nullptr pointer. Close the file by deleting the handle.
Implemented in FStreamingNetworkPlatformFile, FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, and FStorageServerPlatformFile.
|
virtual |
Open a file handle for writing.
| Filename | The file to be opened |
| Flags | Allows specialization of the open operation, |
|
inlinevirtual |
Sends a message to the file server, and will block until it's complete. Will return immediately if the file manager doesn't support talking to a server.
| Message | The string message to send to the server |
Reimplemented in FCachedReadPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, and FStorageServerPlatformFile.
|
inlinevirtual |
Controls if the pak precacher should process precache requests. Requests below this threshold will not get precached. Without this throttle, quite a lot of memory can be consumed if the disk races ahead of the CPU.
| MinPriority | the minimum priority at which requests will get precached |
Reimplemented in FCachedReadPlatformFile, FLoggedPlatformFile, FPakPlatformFile, and FSandboxPlatformFile.
Sets file system to create publicly accessible files or not
| bCreatePublicFiles | true to set the file system to create publicly accessible files |
Reimplemented in FIOSPlatformFile.
|
pure virtual |
Sets the platform file wrapped by this file.
Implemented in IPhysicalPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
|
inlinevirtual |
Attempt to change the platform-specific metadata that indicates if the file has been downloaded from a web browser.
| Filename | The file to change it's mark of the web status. |
| bNewStatus | New mark of the web status for the file. |
| InSourceURL | An optional pointer to a source url that will be applied if new status true. |
Reimplemented in FWindowsPlatformFile.
|
pure virtual |
Attempt to change the read only status of a file. Return true if successful.
Implemented in FWindowsPlatformFile, FApplePlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FIOSPlatformFile, FUnixPlatformFile, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
Set whether the sandbox is enabled or not
| bInEnabled | true to enable the sandbox, false to disable it |
Reimplemented in FSandboxPlatformFile.
|
pure virtual |
Sets the modification time of a file
Implemented in FApplePlatformFile, FIOSPlatformFile, FUnixPlatformFile, FWindowsPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
|
inlinevirtual |
Checks if this platform file should be used even though it was not asked to be. i.e. pak files exist on disk so we should use a pak file
Reimplemented in IPhysicalPlatformFile, FCachedReadPlatformFile, FLoggedPlatformFile, FPlatformFileOpenLog, FNetworkPlatformFile, FPakPlatformFile, FSandboxPlatformFile, FStorageServerPlatformFile, and FStreamingNetworkPlatformFile.
Platform file can override this to get a regular tick from the engine
Reimplemented in FNetworkPlatformFile, and FPakPlatformFile.