![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <UnixPlatformFile.h>
Inheritance diagram for FUnixPlatformFile:Protected Member Functions | |
| virtual CORE_API FString | NormalizeFilename (const TCHAR *Filename, bool bIsForWriting) |
| virtual CORE_API FString | NormalizeDirectory (const TCHAR *Directory, bool bIsForWriting) |
| CORE_API bool | IterateDirectoryCommon (const TCHAR *Directory, const TFunctionRef< bool(struct dirent *)> &Visitor) |
Protected Attributes | |
| bool | bLoggingError = false |
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 () |
Unix 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.
Delete a directory and return true if the directory was deleted or otherwise does not exist.
Implements IPlatformFile.
Delete a file and return true if the file exists. Will not delete read only files.
Implements IPlatformFile.
Return true if the directory exists.
Implements IPlatformFile.
Return true if the file exists.
Implements IPlatformFile.
Return the size of the file, or -1 if it doesn't exist.
Implements IPlatformFile.
Return the last access time of a file. Returns FDateTime::MinValue() on failure
Implements IPlatformFile.
|
overridevirtual |
For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem
Implements IPlatformFile.
|
overridevirtual |
Return the stat data for the given file or directory. Check the FFileStatData::bIsValid member before using the returned data
Implements IPlatformFile.
Return the modification time of a file. Returns FDateTime::MinValue() on failure
Implements IPlatformFile.
Return true if the file is read only.
Implements IPlatformFile.
|
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.
|
protected |
|
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.
Attempt to move a file. Return true if successful. Will not overwrite existing files.
Implements IPlatformFile.
|
protectedvirtual |
|
protectedvirtual |
Unix File I/O implementation
|
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.
|
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.
|
overridevirtual |
Attempt to change the read only status of a file. Return true if successful.
Implements IPlatformFile.
|
overridevirtual |
Sets the modification time of a file
Implements IPlatformFile.