SSHFile
Dados de um ficheiro via SSH.
getName
getName() : string
Description
Returns the file name.
Return
( string )
The file name.
getParent
getParent() : string
Description
Returns parent name of the file.
Return
( string )
The parent name of the file.
getPath
getPath() : string
Description
Returns path of the file.
Return
( string )
Path of the file.
isDirectory
isDirectory() : boolean
Description
Returns whether it is a directory.
Return
( boolean )
Whether it is a directory or not.
isRegularFile
isRegularFile() : boolean
Description
Returns whether it is a regular file, that is, it is not a directory, symbolic link or any other type of special file.
Return
( boolean )
Whether it is a regular file or not.
setDirectory
setDirectory(directory: boolean) : void
Description
Defines whether it is a directory.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | boolean | Whether or not it is a directory. |
Return
( void )
setName
setName(name: string) : void
Description
Defines the file name.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
name | string | Name to be defined. |
Return
( void )
setParent
setParent(parentName: string) : void
Description
Defines the parent name of the file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
parentName | string | Parent name to be defined. |
Return
( void )
setPath
setPath(path: string) : void
Description
Defines the path of the file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
path | string | Path to be defined. |
Return
( void )
setRegularFile
setRegularFile(directory: boolean) : void
Description
Defines whether it is a regular file, that is, it is not a directory, symbolic link or any other type of special file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
directory | boolean | Whether or not it is a regular file. |
Return
( void )