Navigation
API > API/Runtime > API/Runtime/Core
Unix File I/O implementation
| Name | FUnixPlatformFile |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Unix/UnixPlatformFile.h |
| Include Path | #include "Unix/UnixPlatformFile.h" |
Syntax
class FUnixPlatformFile : public IPhysicalPlatformFile
Implements Interfaces
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CreateDirectoriesFromPath
(
const TCHAR* Path |
Unix/UnixPlatformFile.h |
Overridden from IPlatformFile
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CopyFile
(
const TCHAR* To, |
Copy a file. This will fail if the destination file already exists. | Unix/UnixPlatformFile.h | |
virtual bool CreateDirectory
(
const TCHAR* Directory |
Create a directory and return true if the directory was created or already existed. | Unix/UnixPlatformFile.h | |
virtual bool DeleteDirectory
(
const TCHAR* Directory |
Delete a directory and return true if the directory was deleted or otherwise does not exist. | Unix/UnixPlatformFile.h | |
virtual bool DeleteFile
(
const TCHAR* Filename |
Delete a file and return true if the file exists. Will not delete read only files. | Unix/UnixPlatformFile.h | |
virtual bool DirectoryExists
(
const TCHAR* Directory |
Return true if the directory exists. | Unix/UnixPlatformFile.h | |
virtual bool FileExists
(
const TCHAR* Filename |
Return true if the file exists. | Unix/UnixPlatformFile.h | |
virtual int64 FileSize
(
const TCHAR* Filename |
Return the size of the file, or -1 if it doesn't exist. | Unix/UnixPlatformFile.h | |
virtual FDateTime GetAccessTimeStamp
(
const TCHAR* Filename |
Return the last access time of a file. | Unix/UnixPlatformFile.h | |
virtual FString GetFilenameOnDisk
(
const TCHAR* Filename |
For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem | Unix/UnixPlatformFile.h | |
virtual FFileStatData GetStatData
(
const TCHAR* FilenameOrDirectory |
Return the stat data for the given file or directory. | Unix/UnixPlatformFile.h | |
virtual FDateTime GetTimeStamp
(
const TCHAR* Filename |
Return the modification time of a file. | Unix/UnixPlatformFile.h | |
virtual bool IsReadOnly
(
const TCHAR* Filename |
Return true if the file is read only. | Unix/UnixPlatformFile.h | |
virtual ESymlinkResult IsSymlink
(
const TCHAR* Filename |
Return true if the file is a symbolic link | Unix/UnixPlatformFile.h | |
virtual bool IterateDirectory
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a single directory. | Unix/UnixPlatformFile.h | |
virtual bool IterateDirectoryStat
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a single directory. | Unix/UnixPlatformFile.h | |
virtual bool MoveFile
(
const TCHAR* To, |
Attempt to move a file. Return true if successful. Will not overwrite existing files. | Unix/UnixPlatformFile.h | |
virtual FOpenMappedResult OpenMappedEx
(
const TCHAR* Filename, |
Open a file for async reading. This call does hit the disk; it is synchronous open. | Unix/UnixPlatformFile.h | |
virtual IFileHandle * OpenRead
(
const TCHAR* Filename, |
Attempt to open a file for reading. | Unix/UnixPlatformFile.h | |
virtual IFileHandle * OpenWrite
(
const TCHAR* Filename, |
Attempt to open a file for writing. | Unix/UnixPlatformFile.h | |
virtual bool SetReadOnly
(
const TCHAR* Filename, |
Attempt to change the read only status of a file. Return true if successful. | Unix/UnixPlatformFile.h | |
virtual void SetTimeStamp
(
const TCHAR* Filename, |
Sets the modification time of a file | Unix/UnixPlatformFile.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IterateDirectoryCommon
(
const TCHAR* Directory, |
Unix/UnixPlatformFile.h | ||
virtual FString NormalizeDirectory
(
const TCHAR* Directory, |
Unix/UnixPlatformFile.h | ||
virtual FString NormalizeFilename
(
const TCHAR* Filename, |
Unix File I/O implementation | Unix/UnixPlatformFile.h |