Skip to main content

DirectoryScripts

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

Methods

CreateDirectory(String)

View Source
Declaration
public IgnoreResult CreateDirectory(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

Exists(String)

View Source
Declaration
public bool Exists(string path)
Returns

System.Boolean

Parameters
TypeName
System.Stringpath

GetDirectories(String)

View Source
Declaration
public string[] GetDirectories(string path)
Returns

System.String[]

Parameters
TypeName
System.Stringpath

GetFiles(String)

View Source
Declaration
public string[] GetFiles(string path)
Returns

System.String[]

Parameters
TypeName
System.Stringpath

GetLogicalDrives()

View Source
Declaration
public string[] GetLogicalDrives()
Returns

System.String[]

GetFileSystemEntries(String)

View Source
Declaration
public string[] GetFileSystemEntries(string path)
Returns

System.String[]

Parameters
TypeName
System.Stringpath

GetParent(String)

View Source
Declaration
public DirectoryInfo GetParent(string path)
Returns

System.IO.DirectoryInfo

Parameters
TypeName
System.Stringpath

GetCurrentDirectory()

View Source
Declaration
public string GetCurrentDirectory()
Returns

System.String

GetDirectoryRoot(String)

View Source
Declaration
public string GetDirectoryRoot(string path)
Returns

System.String

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

Copy(String, String)

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

ServiceStack.Script.IgnoreResult

Parameters
TypeName
System.Stringfrom
System.Stringto

CopyAllTo(String, String, String[])

View Source
Declaration
public static void CopyAllTo(string src, string dst, string[] excludePaths = null)
Parameters
TypeName
System.Stringsrc
System.Stringdst
System.String[]excludePaths

Implements