Skip to main content

FileScripts

Assembly: ServiceStack.Common.dll​
View Source​
Declaration
public class FileScripts : IOScript

Methods​

Copy(String, String)​

View Source​
Declaration
public IgnoreResult Copy(string from, string to)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringfrom
System.Stringto

Create(String)​

View Source​
Declaration
public IgnoreResult Create(string path)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringpath

Decrypt(String)​

View Source​
Declaration
public IgnoreResult Decrypt(string path)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringpath

Delete(String)​

View Source​
Declaration
public IgnoreResult Delete(string path)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringpath

Encrypt(String)​

View Source​
Declaration
public IgnoreResult Encrypt(string path)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringpath

Exists(String)​

View Source​
Declaration
public bool Exists(string path)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringpath

Move(String, String)​

View Source​
Declaration
public IgnoreResult Move(string from, string to)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringfrom
System.Stringto

Replace(String, String, String)​

View Source​
Declaration
public IgnoreResult Replace(string from, string to, string backup)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringfrom
System.Stringto
System.Stringbackup

ReadAllBytes(String)​

View Source​
Declaration
public byte[] ReadAllBytes(string path)
Returns​

System.Byte[]

Parameters​
TypeName
System.Stringpath

ReadAllLines(String)​

View Source​
Declaration
public string[] ReadAllLines(string path)
Returns​

System.String[]

Parameters​
TypeName
System.Stringpath

ReadAllText(String)​

View Source​
Declaration
public string ReadAllText(string path)
Returns​

System.String

Parameters​
TypeName
System.Stringpath

WriteAllBytes(String, Byte[])​

View Source​
Declaration
public IgnoreResult WriteAllBytes(string path, byte[] bytes)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringpath
System.Byte[]bytes

WriteAllLines(String, String[])​

View Source​
Declaration
public IgnoreResult WriteAllLines(string path, string[] lines)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringpath
System.String[]lines

WriteAllText(String, String)​

View Source​
Declaration
public IgnoreResult WriteAllText(string path, string text)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringpath
System.Stringtext

AppendAllLines(String, String[])​

View Source​
Declaration
public IgnoreResult AppendAllLines(string path, string[] lines)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringpath
System.String[]lines

AppendAllText(String, String)​

View Source​
Declaration
public IgnoreResult AppendAllText(string path, string text)
Returns​

ServiceStack.Script.IgnoreResult

Parameters​
TypeName
System.Stringpath
System.Stringtext

Implements​