![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ApplePlatformFile.h>
Inheritance diagram for FApplePlatformFile:Protected Member Functions | |
| virtual FString | NormalizeFilename (const TCHAR *Filename) |
| virtual FString | NormalizeDirectory (const TCHAR *Directory) |
Additional Inherited Members | |
Public Types inherited from IPlatformFile | |
| 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 inherited from IPlatformFile | |
| static CORE_API IPlatformFile & | GetPlatformPhysical () |
| static CORE_API const TCHAR * | GetPhysicalTypeName () |
Mac File I/O implementation
|
overridevirtual |
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 from IPlatformFile.
Create a directory and return true if the directory was created or already existed.
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
Delete a directory and return true if the directory was deleted or otherwise does not exist.
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
Delete a file and return true if the file exists. Will not delete read only files.
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
Return the size of the file, or -1 if it doesn't exist.
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
Return the last access time of a file. Returns FDateTime::MinValue() on failure
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
|
overridevirtual |
For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
|
overridevirtual |
Return the stat data for the given file or directory. Check the FFileStatData::bIsValid member before using the returned data
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
Return the modification time of a file. Returns FDateTime::MinValue() on failure
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
|
overridevirtual |
Return true if the file is a symbolic link
Reimplemented from IPlatformFile.
|
overridevirtual |
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 |
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
|
overridevirtual |
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 |
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
Attempt to move a file. Return true if successful. Will not overwrite existing files.
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
|
protectedvirtual |
Reimplemented in FIOSPlatformFile.
|
protectedvirtual |
Mac File I/O implementation
Reimplemented in FIOSPlatformFile.
|
overridevirtual |
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 from IPlatformFile.
|
overridevirtual |
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. |
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
|
overridevirtual |
Attempt to open a file for writing. If successful will return a non-nullptr pointer. Close the file by deleting the handle.
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.
|
overridevirtual |
Attempt to change the read only status of a file. Return true if successful.
Implements IPlatformFile.
Reimplemented in FIOSPlatformFile.