Navigation
API > API/Runtime > API/Runtime/Core
Base class for file managers.
This base class simplifies IFileManager implementations by providing simple, unoptimized implementations of functions whose implementations can be derived from other functions.
| Name | FFileManagerGeneric |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/FileManagerGeneric.h |
| Include Path | #include "HAL/FileManagerGeneric.h" |
Syntax
class FFileManagerGeneric : public IFileManager
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FFileManagerGeneric() |
Default constructor. | HAL/FileManagerGeneric.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FFileManagerGeneric() |
Virtual destructor. | HAL/FileManagerGeneric.h |
Functions
Public
Overridden from IFileManager
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString ConvertToAbsolutePathForExternalAppForRead
(
const TCHAR* Filename |
Converts passed in filename to use an absolute path (for reading) | HAL/FileManagerGeneric.h | |
virtual FString ConvertToAbsolutePathForExternalAppForWrite
(
const TCHAR* Filename |
Converts passed in filename to use an absolute path (for writing) | HAL/FileManagerGeneric.h | |
virtual FString ConvertToRelativePath
(
const TCHAR* Filename |
Converts passed in filename to use a relative path. | HAL/FileManagerGeneric.h | |
virtual uint32 Copy
(
const TCHAR* Dest, |
Copies a file. | HAL/FileManagerGeneric.h | |
virtual FArchive * CreateFileReader
(
const TCHAR* Filename, |
Opens a file for reading and create an FArchive which can be used to read from it. | HAL/FileManagerGeneric.h | |
virtual FArchive * CreateFileWriter
(
const TCHAR* Filename, |
Opens a file for writing and create an FArchive which can be used to write to it. | HAL/FileManagerGeneric.h | |
virtual bool Delete
(
const TCHAR* Filename, |
Deletes a file. | HAL/FileManagerGeneric.h | |
virtual bool DeleteDirectory
(
const TCHAR* Path, |
Deletes a directory. | HAL/FileManagerGeneric.h | |
virtual bool DirectoryExists
(
const TCHAR* InDirectory |
Checks if a directory exists. | HAL/FileManagerGeneric.h | |
virtual bool FileExists
(
const TCHAR* Filename |
Checks if a file exists | HAL/FileManagerGeneric.h | |
virtual int64 FileSize
(
const TCHAR* Filename |
Returns the size of a file. (Thread-safe) | HAL/FileManagerGeneric.h | |
| Finds file or directories. | HAL/FileManagerGeneric.h | ||
| Finds all the files within the given directory, with optional file extension filter. | HAL/FileManagerGeneric.h | ||
| Finds file or directories recursively. | HAL/FileManagerGeneric.h | ||
virtual FDateTime GetAccessTimeStamp
(
const TCHAR* Filename |
HAL/FileManagerGeneric.h | ||
virtual double GetFileAgeSeconds
(
const TCHAR* Filename |
Gets the age of a file measured in seconds. | HAL/FileManagerGeneric.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. | HAL/FileManagerGeneric.h | |
virtual FFileStatData GetStatData
(
const TCHAR* FilenameOrDirectory |
Return the stat data for the given file or directory. | HAL/FileManagerGeneric.h | |
virtual FDateTime GetTimeStamp
(
const TCHAR* Path |
HAL/FileManagerGeneric.h | ||
| HAL/FileManagerGeneric.h | |||
virtual 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/FileManagerGeneric.h | |
virtual bool IsSandboxEnabled() |
Returns whether the sandbox is enabled or not | HAL/FileManagerGeneric.h | |
virtual bool IterateDirectory
(
const TCHAR* Directory, |
Call the visitor once for each file or directory in a single directory. | HAL/FileManagerGeneric.h | |
virtual bool IterateDirectory
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a single directory. | HAL/FileManagerGeneric.h | |
virtual bool IterateDirectoryRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | HAL/FileManagerGeneric.h | |
virtual bool IterateDirectoryRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | HAL/FileManagerGeneric.h | |
virtual bool IterateDirectoryStat
(
const TCHAR* Directory, |
Call the visitor once for each file or directory in a single directory. | HAL/FileManagerGeneric.h | |
virtual bool IterateDirectoryStat
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a single directory. | HAL/FileManagerGeneric.h | |
virtual bool IterateDirectoryStatRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | HAL/FileManagerGeneric.h | |
virtual bool IterateDirectoryStatRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | HAL/FileManagerGeneric.h | |
virtual bool MakeDirectory
(
const TCHAR* Path, |
Creates a directory. | HAL/FileManagerGeneric.h | |
virtual bool Move
(
const TCHAR* Dest, |
Moves/renames a file. | HAL/FileManagerGeneric.h | |
virtual void ProcessCommandLineOptions() |
Allow the file manager to handle the commandline | HAL/FileManagerGeneric.h | |
virtual bool SendMessageToServer
(
const TCHAR* Message, |
Sends a message to the file server, and will block until it's complete. | HAL/FileManagerGeneric.h | |
virtual void SetSandboxEnabled
(
bool bInEnabled |
Enables/disables the sandbox, if it is being used | HAL/FileManagerGeneric.h | |
virtual bool SetTimeStamp
(
const TCHAR* Path, |
Sets the modification time of the given file | HAL/FileManagerGeneric.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FString DefaultConvertToRelativePath
(
const TCHAR* Filename |
Converts passed in filename to use a relative path. | HAL/FileManagerGeneric.h |