Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSFTP
- Methods
- Abort
- About
- AppendData
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FingerPrint
- FIPS
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Events
- Methods
- IwodSFTPNotify
- SftpItem
- SftpItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
RemoteOpen method
Opens remote file for raw access.
Type
NoneSyntax
- Basic
object.RemoteOpen RemoteFile, Permissions
The RemoteOpen(object,RemoteFile,Permissions) syntax has these parts:
The RemoteOpen(object,RemoteFile,Permissions) syntax has these parts:
object | An expression evaluating to an object of type wodSFTP. |
RemoteFile | String value. Specifies full path to the file on remote server. |
Permissions | RemotePermissions . Defines combination of flags to open remote file. |
Remarks
The settings for Permissions are:
Constant | Value | Description |
---|---|---|
PermRead | 1 | Opens remote file with read permissions. |
PermWrite | 2 | Opens remote file with write permissions. |
PermCreate | 4 | Creates remote file. |
PermTruncate | 8 | Truncates remote file. |
The RemoteOpen method will open remote file so you can access it as raw data - to manually read or write to parts of that file. You will use RemoteRead and RemoteWrite for accessing the file.
When opening file, you should specify Permissions for opening the file, as specifies in Settings section.
While remote file is opened, you should not call other methods than RemoteRead, RemoteWrite, RemoteClose since they may interfere with raw data access. Only one file can be opened at a time using RemoteOpen method.