M&B: Bannerlord 1.2.10
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)
 
static byte[] GetFileContent (PlatformFilePath filePath)
 
static void CopyFile (PlatformFilePath source, PlatformFilePath target)
 
static void CopyDirectory (string sourceDir, string destinationDir, bool recursive)
 

Member Function Documentation

◆ SaveFile()

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

◆ SaveFileString()

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

◆ GetFileFullPath()

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

◆ AppendLineToFileString()

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

◆ SaveFileAsync()

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

◆ SaveFileStringAsync()

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

◆ GetError()

static string TaleWorlds.Library.FileHelper.GetError ( )
static

◆ FileExists()

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

◆ GetFileContentStringAsync()

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

◆ GetFileContentString()

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

◆ DeleteFile()

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

◆ GetFiles()

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

◆ GetFileContent()

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

◆ CopyFile()

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

◆ CopyDirectory()

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