OS
Performs the execution of commands in the operating system, manipulation of files and folders.
command
OSCommand
_os.command(command: String[]) :Description
Executes a command in the operating system and obtains the result of the execution, the first item is the command and the following are parameters.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
command | String[] | The command and optional parameters that will be executed. |
Return
( OSCommand )
Result of executing the command in the operating system, including the output.
OSCommand
_os.command(command: List) :Description
Executes a command in the operating system and obtains the result of the execution, the first item is the command and the following are parameters.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
command | List | The command and optional parameters that will be executed. |
Return
( OSCommand )
Result of executing the command in the operating system, including the output.
Values) : OSCommand
_os.command(command:Description
Executes a command in the operating system and obtains the result of the execution, the first item is the command and the following are parameters.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
command | Values | The command and optional parameters that will be executed. |
Return
( OSCommand )
Result of executing the command in the operating system, including the output.
directory
_os.directory() : string
Description
Gets the path where the commands will be executed.
Return
( string )
The location where the command will be executed.
_os.directory(directory: string) : OS
Description
Defines the path where the commands will be executed.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | string | The location where the command will be executed. |
Return
( OS )
Instance of the operating system resource.
File) : OS
_os.directory(directory:Description
Defines the path where the commands will be executed.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | File | The location where the command will be executed. |
Return
( OS )
Instance of the operating system resource.
_os.directory(directory: Storage) : OS
Description
Defines the path where the commands will be executed.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | Storage | The location where the command will be executed. |
Return
( OS )
Instance of the operating system resource.
file
File
_os.file(path: string) :Description
Gets the object of manipulation of files and folders relative to the passed path, in this case the path must be a file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
path | string | The path of folder that the manipulation object should obtain. |
Return
( File )
Instance of the file and folder manipulation object relative to the passed path, in this case a file.
folder
File
_os.folder(path: string) :Description
Gets the object of manipulation of folders and files relative to the passed path, in this case the path must be a folder.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
path | string | The path of folder that the manipulation object should obtain. |
Return
( File )
Instance of the file and folder manipulation object relative to the passed path, in this case a folder.
getDirectory
_os.getDirectory() : string
Description
Gets the path where the commands will be executed.
Return
( string )
The location where the command will be executed.
getFile
File
_os.getFile(path: string) :Description
Gets the object of manipulation of files and folders relative to the passed path, in this case the path must be a file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
path | string | The path of folder that the manipulation object should obtain. |
Return
( File )
Instance of the file and folder manipulation object relative to the passed path, in this case a file.
getFolder
File
_os.getFolder(path: string) :Description
Gets the object of manipulation of folders and files relative to the passed path, in this case the path must be a folder.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
path | string | The path of folder that the manipulation object should obtain. |
Return
( File )
Instance of the file and folder manipulation object relative to the passed path, in this case a folder.
getName
_os.getName() : string
Description
Gets the name of the operating system.
Return
( string )
The name of the operating system.
getWaitFor
_os.getWaitFor() : long
Return
( long )
init
_os.init() : OS
Description
Starts a new instance of the OS.
Return
( OS )
The new instance of the OS resource.
isFile
_os.isFile(arg0: string) : boolean
Description
Checks whether the path is a file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
arg0 | string |
Return
( boolean )
Whether or not it is a file.
isFolder
_os.isFolder(arg0: string) : boolean
Description
Checks whether the path is a folder.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
arg0 | string |
Return
( boolean )
Whether or not it is a folder.
isLinux
_os.isLinux() : boolean
Description
Checks whether the operating system is Linux.
Return
( boolean )
Whether or not the operating system Linux.
isMac
_os.isMac() : boolean
Description
Checks whether the operating system is Mac OS X.
Return
( boolean )
Whether or not the operating system Mac OS X.
isOS
_os.isOS(osType: string) : boolean
Description
Checks the operating system based on the past name which can be Linux, Mac or Windows.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
osType | string | The type of operating system that can be Linux, Mac, or Windows. |
Return
( boolean )
Whether or not the operating system is indicated.
isReadCommandError
_os.isReadCommandError() : boolean
Return
( boolean )
isReadCommandOutput
_os.isReadCommandOutput() : boolean
Return
( boolean )
isWindows
_os.isWindows() : boolean
Description
Checks whether the operating system is Windows.
Return
( boolean )
Whether or not the operating system Windows.
name
_os.name() : string
Description
Gets the name of the operating system.
Return
( string )
The name of the operating system.
readCommandError
_os.readCommandError() : boolean
Return
( boolean )
_os.readCommandError(arg0: boolean) : OS
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
arg0 | boolean |
Return
( OS )
readCommandOutput
_os.readCommandOutput() : boolean
Return
( boolean )
_os.readCommandOutput(arg0: boolean) : OS
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
arg0 | boolean |
Return
( OS )
setDirectory
_os.setDirectory(directory: string) : OS
Description
Defines the path where the commands will be executed.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | string | The location where the command will be executed. |
Return
( OS )
Instance of the operating system resource.
File) : OS
_os.setDirectory(directory:Description
Defines the path where the commands will be executed.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | File | The location where the command will be executed. |
Return
( OS )
Instance of the operating system resource.
_os.setDirectory(directory: Storage) : OS
Description
Defines the path where the commands will be executed.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | Storage | The location where the command will be executed. |
Return
( OS )
Instance of the operating system resource.
setReadCommandError
_os.setReadCommandError(arg0: boolean) : OS
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
arg0 | boolean |
Return
( OS )
setReadCommandOutput
_os.setReadCommandOutput(arg0: boolean) : OS
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
arg0 | boolean |
Return
( OS )
setWaitFor
_os.setWaitFor(arg0: long) : OS
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
arg0 | long |
Return
( OS )
waitFor
_os.waitFor() : long
Return
( long )
_os.waitFor(arg0: long) : OS
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
arg0 | long |
Return
( OS )