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