Directory
Provides directory operations
Operations
Copy
Copies a directory
function : Copy(s:System.String, d:System.String) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| s | String | source directory |
| d | String | destination directory |
Return
| Type | Description |
|---|---|
| Bool | true if file was copied |
Copy
Copies a directory
function : Copy(s:System.String, d:System.String, r:Bool) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| s | String | source directory |
| d | String | destination directory |
| r | Bool | recursive copy |
Return
| Type | Description |
|---|---|
| Bool | true if file was copied |
Create
Creates a directory
function : Create(n:System.String) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| n | String | directory name |
Return
| Type | Description |
|---|---|
| Bool | true if directory was created |
CreatePath
Creates a directory path
function : CreatePath(n:String) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| n | String | directory path name |
Return
| Type | Description |
|---|---|
| Bool | true if directory path was created |
Delete
Deletes the directory and all sub-directories
function : Delete(n:System.String) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| n | String | directory |
Return
| Type | Description |
|---|---|
| Int | number of files and directories deleted, 0 if directory was not present |
Exists
Checks to see if the given directory exists
function : Exists(n:System.String) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| n | String | directory name |
Return
| Type | Description |
|---|---|
| Bool | true if directory exists |
GetInstall
Returns the installation directory
function : GetInstall() ~ StringReturn
| Type | Description |
|---|---|
| String | installation directory |
GetSlash
Gets the native directory slash
function : GetSlash() ~ CharReturn
| Type | Description |
|---|---|
| Char | native directory slash |
GetTemp
Returns the system's temporary directory
function : GetTemp() ~ StringReturn
| Type | Description |
|---|---|
| String | system's temporary directory |
GetUser
Returns the current user's working directory
function : GetUser() ~ StringReturn
| Type | Description |
|---|---|
| String | current user's working directory |
GetWorking
Returns the current working directory
function : GetWorking() ~ StringReturn
| Type | Description |
|---|---|
| String | current working directory |
List
List of directory content
function : List(n:System.String) ~ System.String[]Parameters
| Name | Type | Description |
|---|---|---|
| n | String | directory name |
Return
| Type | Description |
|---|---|
| String | list of directory content |