Class PlatformFileHelperPC
- Namespace
- TaleWorlds.Library
- Assembly
- TaleWorlds.Library.dll
public class PlatformFileHelperPC : IPlatformFileHelper
- Inheritance
-
PlatformFileHelperPC
- Implements
- Inherited Members
Constructors
PlatformFileHelperPC(string)
public PlatformFileHelperPC(string applicationName)
Parameters
applicationName
string
Methods
AppendLineToFileString(PlatformFilePath, string)
public SaveResult AppendLineToFileString(PlatformFilePath path, string data)
Parameters
path
PlatformFilePathdata
string
Returns
CreateDirectory(PlatformDirectoryPath)
public void CreateDirectory(PlatformDirectoryPath path)
Parameters
DeleteFile(PlatformFilePath)
public bool DeleteFile(PlatformFilePath path)
Parameters
path
PlatformFilePath
Returns
FileExists(PlatformFilePath)
public bool FileExists(PlatformFilePath path)
Parameters
path
PlatformFilePath
Returns
GetError()
public string GetError()
Returns
GetFileContent(PlatformFilePath)
public byte[] GetFileContent(PlatformFilePath path)
Parameters
path
PlatformFilePath
Returns
- byte[]
GetFileContentString(PlatformFilePath)
public string GetFileContentString(PlatformFilePath path)
Parameters
path
PlatformFilePath
Returns
GetFileContentStringAsync(PlatformFilePath)
public Task<string> GetFileContentStringAsync(PlatformFilePath path)
Parameters
path
PlatformFilePath
Returns
GetFileFullPath(PlatformFilePath)
public string GetFileFullPath(PlatformFilePath filePath)
Parameters
filePath
PlatformFilePath
Returns
GetFiles(PlatformDirectoryPath, string)
public PlatformFilePath[] GetFiles(PlatformDirectoryPath path, string searchPattern)
Parameters
path
PlatformDirectoryPathsearchPattern
string
Returns
RenameFile(PlatformFilePath, string)
public void RenameFile(PlatformFilePath filePath, string newName)
Parameters
filePath
PlatformFilePathnewName
string
SaveFile(PlatformFilePath, byte[])
public SaveResult SaveFile(PlatformFilePath path, byte[] data)
Parameters
path
PlatformFilePathdata
byte[]
Returns
SaveFileAsync(PlatformFilePath, byte[])
public Task<SaveResult> SaveFileAsync(PlatformFilePath path, byte[] data)
Parameters
path
PlatformFilePathdata
byte[]
Returns
SaveFileString(PlatformFilePath, string)
public SaveResult SaveFileString(PlatformFilePath path, string data)
Parameters
path
PlatformFilePathdata
string
Returns
SaveFileStringAsync(PlatformFilePath, string)
public Task<SaveResult> SaveFileStringAsync(PlatformFilePath path, string data)
Parameters
path
PlatformFilePathdata
string
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).