M&B: Bannerlord 1.3.14
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Library.FileHelper Class Reference

Static Public Member Functions

static SaveResult SaveFile (PlatformFilePath path, byte[] data)
static SaveResult SaveFileString (PlatformFilePath path, string data)
static string GetFileFullPath (PlatformFilePath path)
static SaveResult AppendLineToFileString (PlatformFilePath path, string data)
static Task< SaveResultSaveFileAsync (PlatformFilePath path, byte[] data)
static Task< SaveResultSaveFileStringAsync (PlatformFilePath path, string data)
static string GetError ()
static bool FileExists (PlatformFilePath path)
static Task< string > GetFileContentStringAsync (PlatformFilePath path)
static string GetFileContentString (PlatformFilePath path)
static void DeleteFile (PlatformFilePath path)
static PlatformFilePath[] GetFiles (PlatformDirectoryPath path, string searchPattern, SearchOption searchOption)
static byte[] GetFileContent (PlatformFilePath filePath)
static byte[] GetMetaDataContent (PlatformFilePath filePath)
static void CopyFile (PlatformFilePath source, PlatformFilePath target)
static void CopyDirectory (string sourceDir, string destinationDir, bool recursive)

Member Function Documentation

◆ SaveFile()

SaveResult TaleWorlds.Library.FileHelper.SaveFile ( PlatformFilePath path,
byte[] data )
static

◆ SaveFileString()

SaveResult TaleWorlds.Library.FileHelper.SaveFileString ( PlatformFilePath path,
string data )
static

◆ GetFileFullPath()

string TaleWorlds.Library.FileHelper.GetFileFullPath ( PlatformFilePath path)
static

◆ AppendLineToFileString()

SaveResult TaleWorlds.Library.FileHelper.AppendLineToFileString ( PlatformFilePath path,
string data )
static

◆ SaveFileAsync()

Task< SaveResult > TaleWorlds.Library.FileHelper.SaveFileAsync ( PlatformFilePath path,
byte[] data )
static

◆ SaveFileStringAsync()

Task< SaveResult > TaleWorlds.Library.FileHelper.SaveFileStringAsync ( PlatformFilePath path,
string data )
static

◆ GetError()

string TaleWorlds.Library.FileHelper.GetError ( )
static

◆ FileExists()

bool TaleWorlds.Library.FileHelper.FileExists ( PlatformFilePath path)
static

◆ GetFileContentStringAsync()

Task< string > TaleWorlds.Library.FileHelper.GetFileContentStringAsync ( PlatformFilePath path)
static

◆ GetFileContentString()

string TaleWorlds.Library.FileHelper.GetFileContentString ( PlatformFilePath path)
static

◆ DeleteFile()

void TaleWorlds.Library.FileHelper.DeleteFile ( PlatformFilePath path)
static

◆ GetFiles()

PlatformFilePath[] TaleWorlds.Library.FileHelper.GetFiles ( PlatformDirectoryPath path,
string searchPattern,
SearchOption searchOption )
static

◆ GetFileContent()

byte[] TaleWorlds.Library.FileHelper.GetFileContent ( PlatformFilePath filePath)
static

◆ GetMetaDataContent()

byte[] TaleWorlds.Library.FileHelper.GetMetaDataContent ( PlatformFilePath filePath)
static

◆ CopyFile()

void TaleWorlds.Library.FileHelper.CopyFile ( PlatformFilePath source,
PlatformFilePath target )
static

◆ CopyDirectory()

void TaleWorlds.Library.FileHelper.CopyDirectory ( string sourceDir,
string destinationDir,
bool recursive )
static