LocalFile Property
The path to a local file for download/upload. If the file exists, it is overwritten.
Syntax
ANSI (Cross Platform) char* GetLocalFile();
wchar_t* GetLocalFile_W(); // Windows only
int SetLocalFile(const char* lpszLocalFile);
int SetLocalFile(const wchar_t* lpszLocalFile); // Windows only Unicode (Windows) LPWSTR GetLocalFile();
INT SetLocalFile(LPCWSTR lpszLocalFile);
@property (nonatomic,readwrite,assign,getter=localFile,setter=setLocalFile:) NSString* localFile; - (NSString*)localFile; - (void)setLocalFile:(NSString*)newLocalFile;
#define PID_FTP_LOCALFILE 22 IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_FTP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_FTP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
""
Remarks
This property is used by the Upload and Download methods to specify the path to a local file to be downloaded/uploaded. See the method descriptions for more information.
Example (Setting LocalFile)
FTPControl.LocalFile = "C:\localfile.txt" FTPControl.RemoteFile = "remotefile.txt" FTPControl.Download() FTPControl.LocalFile = "C:\localfile2.txt" FTPControl.RemoteFile = "folder/remotefile2.txt" FTPControl.Download()
Data Type
String