Skip to content

RemoveDir

Removes a directory from remote environment

1
myFiles.RemoveDir(options: FileTransferOptions):boolean

Parameters

FileTransferOptions options
    Instance of FileTransferOptions

Returns

True if directory removed, otherwise false.

Types

FileTransferOptions

Options for file transfer operations.

Password : string
Password to authenticate on remote environment. Optional.

Port : number
Port number of remote environment. Optional.

Protocol : ( "FTP" | "FTPS" | "SFTP" | "HTTP" | "HTTPS" )
Protocol to use for file transfer. Optional. Default is FTP.

RemoteHost : string
IP address or host name of remote environment.

RemotePath : string
Path of file on remote environment.

UserName : string
Username to authenticate on remote environment. Optional.