Ark Server API (ASA) - Wiki
|
#include <FileManagerGeneric.h>
Static Public Member Functions | |
static FString | DefaultConvertToRelativePath (const TCHAR *Filename) |
Static Public Member Functions inherited from IFileManager | |
static IFileManager & | Get () |
Private Member Functions | |
FORCEINLINE IPlatformFile & | GetLowLevel () const |
FArchive * | CreateFileReaderInternal (const TCHAR *Filename, uint32 ReadFlags, uint32 BufferSize) |
FArchive * | CreateFileWriterInternal (const TCHAR *Filename, uint32 WriteFlags, uint32 BufferSize) |
uint32 | CopyWithProgress (const TCHAR *InDestFile, const TCHAR *InSrcFile, bool ReplaceExisting, bool EvenIfReadOnly, bool Attributes, FCopyProgress *Progress, EFileRead ReadFlags, EFileWrite WriteFlags) |
void | FindFilesRecursiveInternal (TArray< FString > &FileNames, const TCHAR *StartDirectory, const TCHAR *Filename, bool Files, bool Directories) |
Additional Inherited Members | |
Protected Member Functions inherited from IFileManager | |
IFileManager () | |
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.
Definition at line 35 of file FileManagerGeneric.h.
|
inline |
Default constructor.
Definition at line 49 of file FileManagerGeneric.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 54 of file FileManagerGeneric.h.
|
overridevirtual |
Converts passed in filename to use an absolute path (for reading)
Filename | filename to convert to use an absolute path, safe to pass in already using absolute path |
Implements IFileManager.
|
overridevirtual |
Converts passed in filename to use an absolute path (for writing)
Filename | filename to convert to use an absolute path, safe to pass in already using absolute path |
Implements IFileManager.
Converts passed in filename to use a relative path.
Filename | filename to convert to use a relative path |
Implements IFileManager.
|
overridevirtual |
Copies a file.
Implements IFileManager.
|
private |
Helper called from Copy if Progress is available
|
inlineoverridevirtual |
Opens a file for reading and create an FArchive which can be used to read from it.
Filename | Path to the file to open |
ReadFlags | An optional bitfield of optional flags. For flag values see @See EFileRead |
Implements IFileManager.
Definition at line 72 of file FileManagerGeneric.h.
|
private |
|
inlineoverridevirtual |
Opens a file for writing and create an FArchive which can be used to write to it.
Filename | Path to the desired location of the file |
WriteFlags | An optional bitfield of optional flags. For flag values see @See EFileWrite |
Implements IFileManager.
Definition at line 77 of file FileManagerGeneric.h.
|
private |
Converts passed in filename to use a relative path.
Filename | filename to convert to use a relative path |
|
overridevirtual |
Deletes a file.
Implements IFileManager.
|
overridevirtual |
Deletes a directory.
Implements IFileManager.
Checks if a directory exists.
Implements IFileManager.
Checks if a file exists
Implements IFileManager.
Returns the size of a file. (Thread-safe)
Filename | Platform-independent Unreal filename. |
Implements IFileManager.
|
overridevirtual |
Finds all the files within the given directory, with optional file extension filter.
Directory,the | absolute path to the directory to search. Ex: "C:\UE4\Pictures" |
FileExtension,If | FileExtension is NULL, or an empty string "" then all files are found. Otherwise FileExtension can be of the form .EXT or just EXT and only files with that extension will be returned. |
Implements IFileManager.
|
overridevirtual |
Finds file or directories.
Implements IFileManager.
|
overridevirtual |
Finds file or directories recursively.
Implements IFileManager.
|
private |
Implements IFileManager.
Gets the age of a file measured in seconds.
Implements IFileManager.
For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem.
Filename | Filename to query |
Implements IFileManager.
|
inlineprivate |
Definition at line 39 of file FileManagerGeneric.h.
|
overridevirtual |
Return the stat data for the given file or directory. Check the FFileStatData::bIsValid member before using the returned data
Implements IFileManager.
Implements IFileManager.
|
virtual |
[in] | PathA | The first given file |
[in] | PathB | The second given file |
[out] | OutTimeStampA | the modification time of the first given file (or FDateTime::MinValue() on failure) |
[out] | OutTimeStampB | the modification time of the second given file (or FDateTime::MinValue() on failure) |
Implements IFileManager.
Checks if a file is read-only.
Implements IFileManager.
Returns whether the sandbox is enabled or not
Implements IFileManager.
Definition at line 67 of file FileManagerGeneric.h.
|
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 IFileManager.
|
overridevirtual |
Call 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 (see FDirectoryVisitor::Visit for the signature) |
Implements IFileManager.
|
overridevirtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories. |
Implements IFileManager.
|
overridevirtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories (see FDirectoryVisitor::Visit for the signature). |
Implements IFileManager.
|
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 IFileManager.
|
overridevirtual |
Call 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 (see FDirectoryStatVisitor::Visit for the signature) |
Implements IFileManager.
|
overridevirtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories. |
Implements IFileManager.
|
overridevirtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories (see FDirectoryStatVisitor::Visit for the signature). |
Implements IFileManager.
|
overridevirtual |
Creates a directory.
Implements IFileManager.
|
overridevirtual |
Moves/renames a file.
Implements IFileManager.
Allow the file manager to handle the commandline
Implements IFileManager.
|
inlineoverridevirtual |
Sends a message to the file server, and will block until it's complete. Will return immediately if the file manager doesn't support talking to a server.
Message | The string message to send to the server |
Implements IFileManager.
Definition at line 204 of file FileManagerGeneric.h.
Enables/disables the sandbox, if it is being used
Implements IFileManager.
Definition at line 62 of file FileManagerGeneric.h.
Sets the modification time of the given file
Implements IFileManager.