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
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 |
Exists(String)
View Source
Declaration
public bool Exists(string path)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | path |
GetDirectories(String)
View Source
Declaration
public string[] GetDirectories(string path)
Returns
System.String[]
Parameters
Type | Name |
---|---|
System.String | path |
GetFiles(String)
View Source
Declaration
public string[] GetFiles(string path)
Returns
System.String[]
Parameters
Type | Name |
---|---|
System.String | path |
GetLogicalDrives()
View Source
Declaration
public string[] GetLogicalDrives()
Returns
System.String[]
GetFileSystemEntries(String)
View Source
Declaration
public string[] GetFileSystemEntries(string path)
Returns
System.String[]
Parameters
Type | Name |
---|---|
System.String | path |
GetParent(String)
View Source
Declaration
public DirectoryInfo GetParent(string path)
Returns
System.IO.DirectoryInfo
Parameters
Type | Name |
---|---|
System.String | path |
GetCurrentDirectory()
View Source
Declaration
public string GetCurrentDirectory()
Returns
System.String
GetDirectoryRoot(String)
View Source
Declaration
public string GetDirectoryRoot(string path)
Returns
System.String
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 |
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 |
CopyAllTo(String, String, String[])
View Source
Declaration
public static void CopyAllTo(string src, string dst, string[] excludePaths = null)
Parameters
Type | Name |
---|---|
System.String | src |
System.String | dst |
System.String[] | excludePaths |