|
| | FFileSystem () |
| |
| | ~FFileSystem () |
| |
| virtual bool | DirectoryExists (const TCHAR *DirectoryPath) const override |
| |
| virtual bool | MakeDirectory (const TCHAR *DirectoryPath) const override |
| |
| virtual bool | GetFileSize (const TCHAR *Filename, int64 &FileSize) const override |
| |
| virtual bool | GetAttributes (const TCHAR *Filename, EAttributeFlags &Attributes) const override |
| |
| virtual bool | GetTimeStamp (const TCHAR *Path, FDateTime &TimeStamp) const override |
| |
| virtual bool | SetReadOnly (const TCHAR *Filename, bool bIsReadOnly) const override |
| |
| virtual bool | SetCompressed (const TCHAR *Filename, bool bIsCompressed) const override |
| |
| virtual bool | SetExecutable (const TCHAR *Filename, bool bIsExecutable) const override |
| |
| virtual TUniquePtr< FArchive > | CreateFileReader (const TCHAR *Filename, EReadFlags ReadFlags=EReadFlags::None) const override |
| |
| virtual TUniquePtr< FArchive > | CreateFileWriter (const TCHAR *Filename, EWriteFlags WriteFlags=EWriteFlags::None) const override |
| |
| virtual bool | LoadFileToString (const TCHAR *Filename, FString &Contents) const override |
| |
| virtual bool | SaveStringToFile (const TCHAR *Filename, const FString &Contents) const override |
| |
| virtual bool | DeleteFile (const TCHAR *Filename) const override |
| |
| virtual bool | MoveFile (const TCHAR *FileDest, const TCHAR *FileSource) const override |
| |
| virtual bool | CopyFile (const TCHAR *FileDest, const TCHAR *FileSource) const override |
| |
| virtual bool | FileExists (const TCHAR *Filename) const override |
| |
| virtual void | FindFiles (TArray< FString > &FoundFiles, const TCHAR *Directory, const TCHAR *FileExtension=nullptr) const override |
| |
| virtual void | FindFilesRecursively (TArray< FString > &FoundFiles, const TCHAR *Directory, const TCHAR *FileExtension=nullptr) const override |
| |
| virtual void | ParallelFindFilesRecursively (TArray< FString > &FoundFiles, const TCHAR *Directory, const TCHAR *FileExtension=nullptr, EAsyncExecution AsyncExecution=EAsyncExecution::ThreadPool) const override |
| |
| virtual int64 | GetAllowedBytesToWriteThrottledStorage (const TCHAR *DestinationPath=nullptr) const override |
| |
| virtual | ~IFileSystem () |
| |
◆ FFileSystem()
| BuildPatchServices::FFileSystem::FFileSystem |
( |
| ) |
|
◆ ~FFileSystem()
| BuildPatchServices::FFileSystem::~FFileSystem |
( |
| ) |
|
◆ CopyFile()
| bool BuildPatchServices::FFileSystem::CopyFile |
( |
const TCHAR * |
FileDest, |
|
|
const TCHAR * |
FileSource |
|
) |
| const |
|
overridevirtual |
Copy a file.
- Parameters
-
| FileDest | The destination file path. |
| FileSource | The source file path. |
- Returns
- true if the file was copied successfully.
Implements BuildPatchServices::IFileSystem.
◆ CreateFileReader()
| TUniquePtr< FArchive > BuildPatchServices::FFileSystem::CreateFileReader |
( |
const TCHAR * |
Filename, |
|
|
EReadFlags |
ReadFlags = EReadFlags::None |
|
) |
| const |
|
overridevirtual |
Creates file reader archive.
- Parameters
-
| Filename | The filename for the request. |
| ReadFlags | The file open flags. |
- Returns
- unique pointer to the created archive, invalid if failed to open the file.
Implements BuildPatchServices::IFileSystem.
◆ CreateFileWriter()
| TUniquePtr< FArchive > BuildPatchServices::FFileSystem::CreateFileWriter |
( |
const TCHAR * |
Filename, |
|
|
EWriteFlags |
WriteFlags = EWriteFlags::None |
|
) |
| const |
|
overridevirtual |
Creates file writer archive.
- Parameters
-
| Filename | The filename for the request. |
| WriteFlags | The file open flags. |
- Returns
- unique pointer to the created archive, invalid if failed to open the file.
Implements BuildPatchServices::IFileSystem.
◆ DeleteFile()
| bool BuildPatchServices::FFileSystem::DeleteFile |
( |
const TCHAR * |
Filename | ) |
const |
|
overridevirtual |
◆ DirectoryExists()
| bool BuildPatchServices::FFileSystem::DirectoryExists |
( |
const TCHAR * |
DirectoryPath | ) |
const |
|
overridevirtual |
Checks whether a directory exists.
- Parameters
-
| DirectoryPath | The directory to check. |
- Returns
- true if directory exists.
Implements BuildPatchServices::IFileSystem.
◆ FileExists()
| bool BuildPatchServices::FFileSystem::FileExists |
( |
const TCHAR * |
Filename | ) |
const |
|
overridevirtual |
◆ FindFiles()
| void BuildPatchServices::FFileSystem::FindFiles |
( |
TArray< FString > & |
FoundFiles, |
|
|
const TCHAR * |
Directory, |
|
|
const TCHAR * |
FileExtension = nullptr |
|
) |
| const |
|
overridevirtual |
Finds all the files within the given directory, with optional file extension filter.
- Parameters
-
| FoundFiles | Receives the files that matched the optional FileExtension filter, or all files if none was specified. |
| Directory | The directory to iterate the contents of. |
| FileExtension | The extension to filter by, in the form of TEXT(".ext"). If null or empty string, all files are found. |
Implements BuildPatchServices::IFileSystem.
◆ FindFilesRecursively()
| void BuildPatchServices::FFileSystem::FindFilesRecursively |
( |
TArray< FString > & |
FoundFiles, |
|
|
const TCHAR * |
Directory, |
|
|
const TCHAR * |
FileExtension = nullptr |
|
) |
| const |
|
overridevirtual |
Finds all the files within the given directory tree, with optional file extension filter.
- Parameters
-
| FoundFiles | Receives the files that matched the optional FileExtension filter, or all files if none was specified. |
| Directory | The directory to iterate the contents of. This function explores subdirectories. |
| FileExtension | The extension to filter by, in the form of TEXT(".ext"). If null or empty string, all files are found. |
Implements BuildPatchServices::IFileSystem.
◆ GetAllowedBytesToWriteThrottledStorage()
| int64 BuildPatchServices::FFileSystem::GetAllowedBytesToWriteThrottledStorage |
( |
const TCHAR * |
DestinationPath = nullptr | ) |
const |
|
overridevirtual |
Returns the number of bytes that are currently allowed to be written to throttled write storage (if the platform has such restrictions)
- Parameters
-
| DestinationPath | If specified, the file system can optionally take into account the destination of the file to determine the current limit |
- Returns
- The number of bytes that are allowed to be written to write throttled storage. If there is no limit, INT64_MAX is returned
Implements BuildPatchServices::IFileSystem.
◆ GetAttributes()
| bool BuildPatchServices::FFileSystem::GetAttributes |
( |
const TCHAR * |
Filename, |
|
|
EAttributeFlags & |
Attributes |
|
) |
| const |
|
overridevirtual |
Get the attributes for a file.
- Parameters
-
| Filename | The filename for the request. |
| Attributes | Receives the attribute flags if successful. |
- Returns
- true if successful.
Implements BuildPatchServices::IFileSystem.
◆ GetFileSize()
| bool BuildPatchServices::FFileSystem::GetFileSize |
( |
const TCHAR * |
Filename, |
|
|
int64 & |
FileSize |
|
) |
| const |
|
overridevirtual |
Get the size of a file.
- Parameters
-
| Filename | The filename for the request. |
| FileSize | Receives the file size in bytes or INDEX_NONE if the file didn't exist. |
- Returns
- true if successful.
Implements BuildPatchServices::IFileSystem.
◆ GetTimeStamp()
| bool BuildPatchServices::FFileSystem::GetTimeStamp |
( |
const TCHAR * |
Filename, |
|
|
FDateTime & |
TimeStamp |
|
) |
| const |
|
overridevirtual |
Get modification time of a file.
- Parameters
-
| Filename | The filename for the request. |
| TimeStamp | Receives the time stamp if successful. |
- Returns
- true if successful.
Implements BuildPatchServices::IFileSystem.
◆ LoadFileToString()
| bool BuildPatchServices::FFileSystem::LoadFileToString |
( |
const TCHAR * |
Filename, |
|
|
FString & |
Contents |
|
) |
| const |
|
overridevirtual |
Load a file on disk into string.
- Parameters
-
| Filename | The filename for the request. |
| Contents | The contents of the file if successful. |
- Returns
- true if successful.
Implements BuildPatchServices::IFileSystem.
◆ MakeDirectory()
| bool BuildPatchServices::FFileSystem::MakeDirectory |
( |
const TCHAR * |
DirectoryPath | ) |
const |
|
overridevirtual |
◆ MoveFile()
| bool BuildPatchServices::FFileSystem::MoveFile |
( |
const TCHAR * |
FileDest, |
|
|
const TCHAR * |
FileSource |
|
) |
| const |
|
overridevirtual |
Move or rename a file.
- Parameters
-
| FileDest | The destination file path. |
| FileSource | The source file path. |
- Returns
- true if the file was moved/renamed successfully.
Implements BuildPatchServices::IFileSystem.
◆ ParallelFindFilesRecursively()
Finds all the files within the given directory tree, with optional file extension filter. This version places each directory found on separate threads to improve large enumeration times.
- Parameters
-
| FoundFiles | Receives the files that matched the optional FileExtension filter, or all files if none was specified. |
| Directory | The directory to iterate the contents of. This function explores subdirectories. |
| FileExtension | The extension to filter by, in the form of TEXT(".ext"). If null or empty string, all files are found. |
| AsyncExecution | The threaded execution method to use, i.e. on Task Graph, Thread Pool, or a new thread per directory. |
Implements BuildPatchServices::IFileSystem.
◆ SaveStringToFile()
| bool BuildPatchServices::FFileSystem::SaveStringToFile |
( |
const TCHAR * |
Filename, |
|
|
const FString & |
Contents |
|
) |
| const |
|
overridevirtual |
Save a string to file on disk.
- Parameters
-
| Filename | The filename for the request. |
| Contents | The string to save. |
- Returns
- true if successful.
Implements BuildPatchServices::IFileSystem.
◆ SetCompressed()
| bool BuildPatchServices::FFileSystem::SetCompressed |
( |
const TCHAR * |
Filename, |
|
|
bool |
bIsCompressed |
|
) |
| const |
|
overridevirtual |
Set whether the file is compressed.
- Parameters
-
| Filename | The filename for the request. |
| bIsCompressed | The state to set. |
- Returns
- true if successful.
Implements BuildPatchServices::IFileSystem.
◆ SetExecutable()
| bool BuildPatchServices::FFileSystem::SetExecutable |
( |
const TCHAR * |
Filename, |
|
|
bool |
bIsExecutable |
|
) |
| const |
|
overridevirtual |
Set whether the file is executable.
- Parameters
-
| Filename | The filename for the request. |
| bIsExecutable | The state to set. |
- Returns
- true if successful.
Implements BuildPatchServices::IFileSystem.
◆ SetReadOnly()
| bool BuildPatchServices::FFileSystem::SetReadOnly |
( |
const TCHAR * |
Filename, |
|
|
bool |
bIsReadOnly |
|
) |
| const |
|
overridevirtual |
Set whether the file is readonly.
- Parameters
-
| Filename | The filename for the request. |
| bIsReadOnly | The state to set. |
- Returns
- true if successful.
Implements BuildPatchServices::IFileSystem.
The documentation for this class was generated from the following file:
- Engine/Source/Runtime/Online/BuildPatchServices/Private/Common/FileSystem.cpp