Class FileHelper
- Namespace
- TaleWorlds.Library
- Assembly
- TaleWorlds.Library.dll
public static class FileHelper
- Inheritance
-
FileHelper
- Inherited Members
Methods
AppendLineToFileString(PlatformFilePath, string)
public static SaveResult AppendLineToFileString(PlatformFilePath path, string data)
Parameters
pathPlatformFilePathdatastring
Returns
CopyDirectory(string, string, bool)
public static void CopyDirectory(string sourceDir, string destinationDir, bool recursive)
Parameters
CopyFile(PlatformFilePath, PlatformFilePath)
public static void CopyFile(PlatformFilePath source, PlatformFilePath target)
Parameters
sourcePlatformFilePathtargetPlatformFilePath
DeleteFile(PlatformFilePath)
public static void DeleteFile(PlatformFilePath path)
Parameters
pathPlatformFilePath
FileExists(PlatformFilePath)
public static bool FileExists(PlatformFilePath path)
Parameters
pathPlatformFilePath
Returns
GetError()
public static string GetError()
Returns
GetFileContent(PlatformFilePath)
public static byte[] GetFileContent(PlatformFilePath filePath)
Parameters
filePathPlatformFilePath
Returns
- byte[]
GetFileContentString(PlatformFilePath)
public static string GetFileContentString(PlatformFilePath path)
Parameters
pathPlatformFilePath
Returns
GetFileContentStringAsync(PlatformFilePath)
public static Task<string> GetFileContentStringAsync(PlatformFilePath path)
Parameters
pathPlatformFilePath
Returns
GetFileFullPath(PlatformFilePath)
public static string GetFileFullPath(PlatformFilePath path)
Parameters
pathPlatformFilePath
Returns
GetFiles(PlatformDirectoryPath, string)
public static PlatformFilePath[] GetFiles(PlatformDirectoryPath path, string searchPattern)
Parameters
pathPlatformDirectoryPathsearchPatternstring
Returns
SaveFile(PlatformFilePath, byte[])
public static SaveResult SaveFile(PlatformFilePath path, byte[] data)
Parameters
pathPlatformFilePathdatabyte[]
Returns
SaveFileAsync(PlatformFilePath, byte[])
public static Task<SaveResult> SaveFileAsync(PlatformFilePath path, byte[] data)
Parameters
pathPlatformFilePathdatabyte[]
Returns
SaveFileString(PlatformFilePath, string)
public static SaveResult SaveFileString(PlatformFilePath path, string data)
Parameters
pathPlatformFilePathdatastring
Returns
SaveFileStringAsync(PlatformFilePath, string)
public static Task<SaveResult> SaveFileStringAsync(PlatformFilePath path, string data)
Parameters
pathPlatformFilePathdatastring
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).