Back to product page
- Introduction
- License agreement
- Getting Started
- Objects
- Enumerations
- wodFtpDLX
- Methods
- Abort
- About
- AppendData
- AppendFile
- AppendFileFrom
- CheckDir
- ClearCommandChannel
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- GetAttributes
- GetData
- GetDate
- GetFile
- GetFileAt
- GetFileAt64
- GetFiles
- GetSize
- ListDir
- ListNames
- LocalCRC
- LoopFiles
- MakeDir
- PutData
- PutFile
- PutFileAt
- PutFileAt64
- PutFiles
- RawReceived
- RawSend
- Refresh
- RemoteCRC
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Site
- Properties
- Account
- Arrange
- AscIITranslation
- Authentication
- BackColor
- Blocking
- BorderVisible
- BufferSize
- Certificate
- ClientName
- ColumnCount
- ColumnHeader
- Columns
- ColumnWidth
- Compression
- ContextMenu
- DirFormat
- DirItems
- Enabled
- Encryption
- EncryptionList
- ErrorText
- FIPS
- ForeColor
- HMacList
- Hostname
- IconView
- ItemSkip
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalCertBag
- LocalPath
- Login
- MaxDataPort
- MaxTransferRate
- MinDataPort
- MyHostname
- MyIP
- Notification
- Passive
- Password
- PasvPort
- Port
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemotePath
- Resume
- SecureMethod
- ShellIcons
- SmartGet
- SmartPut
- SortItems
- SSLCipherList
- State
- StateText
- StrictHost
- TabStop
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- UTF8Encoding
- Version
- Events
- ActionCopy
- ActionDelete
- ActionDownload
- ActionMakeDir
- ActionNewFile
- ActionPaste
- ActionProperties
- ActionRename
- ActionSelect
- AfterViewChange
- Attributes
- Attributes64
- Banner
- BeforeViewChange
- Click
- ClientCertRequired
- Connected
- CryptoInformation
- DblClick
- Disconnected
- Done
- FileTransferData
- Focus
- FTPReply
- HostCertificate
- HostFingerprint
- KeyPress
- ListItems
- LoginChallenge
- LoopError
- LoopItem
- MenuClick
- PreTranslateCommand
- PreTranslateReply
- Progress
- Progress64
- ShowContextMenu
- SiteReply
- StateChange
- Methods
- IwodFtpNotify
- DirItem
- DirItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
- How to...
SmartPut property
Determines if wodFtpDLX should try to determine remote filename on PutFile command.
Type
A Boolean valueSyntax
- Basic
object.SmartPut[= value]
The SmartPut(object,value) syntax has these parts:
The SmartPut(object,value) syntax has these parts:
object | An expression evaluating to an object of type wodFtpDLX. |
value | A Boolean value. When set to True wodFtpDLX tests for RemotePath existance (default value). |
Remarks
wodFtpDLX tries to be smart when you call PutFile method. It tries to determine which filename are you trying to upload, by querying remote server if supplied RemotePath in PutFile call is a directory, in which case name is specified as last part of LocalPath argument of PutFile call. This is a nice thing - it allows you specify whatever you wish in LocalPath and RemotePath arguments, but usually causes wodFtpDLX to send one additional CWD before uploading file on the server. Some administrators and users prefer not to see that command in logs. In such cases you can set SmartPut to False, in which case wodFtpDLX will assume you have specified full paths in LocalPath and RemotePath arguments in PutFile call. If you specify only folder(s), PutFile will fail. As example, you can look at this PutFile call:PutFile("c:\somefolder\a", "/somewhere/b")
If 'a' is a file - what is your intention? Do you want to store this file to remote server as file named 'b' or you want to store it as file 'a' in remote folder 'b'? wodFtpDLX cannot know this so he tests for existance of "/somewhere/b". If such folder is found, file is saved as "/somewhere/b/a". If such folder is not found, file is saved as "/somewhere/b" . When SmartPut is set to False, error will be generated if "/somewhere/b" is a folder.