LocalFile Property
The path to a local file for download/upload. If the file exists, it is overwritten.
Object Oriented Interface
public function getLocalFile(); public function setLocalFile($value);
Procedural Interface
ipworksssh_sftp_get($res, 29 ); ipworksssh_sftp_set($res, 29, $value );
Default Value
''
Remarks
The LocalFile property is used by the Upload and Download methods. See the method descriptions for more information.
Example (Setting LocalFile)
SFTPControl.Localfile = "C:\localfile.txt" SFTPControl.RemoteFile = "remotefile.txt" SFTPControl.Download() SFTPControl.Localfile = "C:\localfile2.txt" SFTPControl.RemoteFile = "folder/remotefile2.txt" SFTPControl.Download()
Data Type
String