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
Type | Name |
---|---|
System.String | from |
System.String | to |
Create(String)
View Source
Declaration
public IgnoreResult Create(string path)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | path |
Decrypt(String)
View Source
Declaration
public IgnoreResult Decrypt(string path)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | path |
Delete(String)
View Source
Declaration
public IgnoreResult Delete(string path)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | path |
Encrypt(String)
View Source
Declaration
public IgnoreResult Encrypt(string path)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | path |
Exists(String)
View Source
Declaration
public bool Exists(string path)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | path |
Move(String, String)
View Source
Declaration
public IgnoreResult Move(string from, string to)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | from |
System.String | to |
Replace(String, String, String)
View Source
Declaration
public IgnoreResult Replace(string from, string to, string backup)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | from |
System.String | to |
System.String | backup |
ReadAllBytes(String)
View Source
Declaration
public byte[] ReadAllBytes(string path)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | path |
ReadAllLines(String)
View Source
Declaration
public string[] ReadAllLines(string path)
Returns
System.String[]
Parameters
Type | Name |
---|---|
System.String | path |
ReadAllText(String)
View Source
Declaration
public string ReadAllText(string path)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | path |
WriteAllBytes(String, Byte[])
View Source
Declaration
public IgnoreResult WriteAllBytes(string path, byte[] bytes)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | path |
System.Byte[] | bytes |
WriteAllLines(String, String[])
View Source
Declaration
public IgnoreResult WriteAllLines(string path, string[] lines)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | path |
System.String[] | lines |
WriteAllText(String, String)
View Source
Declaration
public IgnoreResult WriteAllText(string path, string text)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | path |
System.String | text |
AppendAllLines(String, String[])
View Source
Declaration
public IgnoreResult AppendAllLines(string path, string[] lines)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | path |
System.String[] | lines |
AppendAllText(String, String)
View Source
Declaration
public IgnoreResult AppendAllText(string path, string text)
Returns
ServiceStack.Script.IgnoreResult
Parameters
Type | Name |
---|---|
System.String | path |
System.String | text |