Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/HAL
Inheritance Hierarchy
- IFileManager
- FFileManagerGeneric
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/HAL/FileManager.h |
| Include | #include "HAL/FileManager.h" |
Syntax
class IFileManager
Constructors
| Type | Name | Description | |
|---|---|---|---|
IFileManager () |
Construtor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FString | ConvertToAbsolutePathForExternalAppForRead
(
const TCHAR* Filename |
Converts passed in filename to use an absolute path (for reading) | |
| FString | ConvertToAbsolutePathForExternalAppForWrite
(
const TCHAR* Filename |
Converts passed in filename to use an absolute path (for writing) | |
| FString | ConvertToRelativePath
(
const TCHAR* Filename |
Converts passed in filename to use a relative path. | |
| uint32 | Copy
(
const TCHAR* Dest, |
Copies a file. | |
| FArchive * | CreateFileReader
(
const TCHAR* Filename, |
Opens a file for reading and create an FArchive which can be used to read from it. | |
| FArchive * | CreateFileWriter
(
const TCHAR* Filename, |
Opens a file for writing and create an FArchive which can be used to write to it. | |
| bool | Delete
(
const TCHAR* Filename, |
Deletes a file. | |
| bool | DeleteDirectory
(
const TCHAR* Path, |
Deletes a directory. | |
| bool |
DirectoryExists
(
const TCHAR* InDirectory |
Checks if a directory exists. | |
| bool | FileExists
(
const TCHAR* Filename |
Checks if a file exists | |
| int64 | FileSize
(
const TCHAR* Filename |
Returns the size of a file. (Thread-safe) | |
| void | Finds file or directories. | ||
| void | Finds all the files within the given directory, with optional file extension filter. | ||
| void | FindFilesRecursive
(
TArray< FString >& FileNames, |
Finds file or directories recursively. | |
| IFileManager & | Get () |
Singleton access, platform specific, also calls PreInit() | |
| FDateTime | GetAccessTimeStamp
(
const TCHAR* Filename |
||
| double | GetFileAgeSeconds
(
const TCHAR* Filename |
Gets the age of a file measured in seconds. | |
| FString | GetFilenameOnDisk
(
const TCHAR* Filename |
For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem. | |
| FFileStatData | GetStatData
(
const TCHAR* FilenameOrDirectory |
Return the stat data for the given file or directory. | |
| FDateTime | GetTimeStamp
(
const TCHAR* Path |
||
| void | GetTimeStampPair
(
const TCHAR* PathA, |
||
| bool | IsReadOnly
(
const TCHAR* Filename |
If you're writing to a debug file, you should use CreateDebugFileWriter, and wrap the calling code in if ALLOW_DEBUG_FILES. | |
| bool | Returns whether the sandbox is enabled or not | ||
| bool | IterateDirectory
(
const TCHAR* Directory, |
Call the visitor once for each file or directory in a single directory. | |
| bool | IterateDirectory
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a single directory. | |
| bool | IterateDirectoryRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | |
| bool | IterateDirectoryRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | |
| bool | IterateDirectoryStat
(
const TCHAR* Directory, |
Call the visitor once for each file or directory in a single directory. | |
| bool | IterateDirectoryStat
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a single directory. | |
| bool | IterateDirectoryStatRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | |
| bool | IterateDirectoryStatRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | |
| bool | MakeDirectory
(
const TCHAR* Path, |
Creates a directory. | |
| bool | Move
(
const TCHAR* Dest, |
Moves/renames a file. | |
| void | Allow the file manager to handle the commandline | ||
| bool | SendMessageToServer
(
const TCHAR* Message, |
Sends a message to the file server, and will block until it's complete. | |
| void | SetSandboxEnabled
(
bool bInEnabled |
Enables/disables the sandbox, if it is being used | |
| bool | SetTimeStamp
(
const TCHAR* Path, |
Sets the modification time of the given file |