FileExists Property

Returns true if the file specified by RemoteFile exists on the remote server.

Syntax

ANSI (Cross Platform)
int GetFileExists();

Unicode (Windows)
BOOL GetFileExists();
@property (nonatomic,readonly,assign,getter=fileExists) BOOL fileExists;
- (BOOL)fileExists;
#define PID_SFTP_FILEEXISTS 24

IPWORKSSFTP_EXTERNAL void* IPWORKSSFTP_CALL IPWorksSFTP_SFTP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

Default Value

FALSE

Remarks

This property returns True if the file exists on the remote server. It returns false if the file does not exist. You must specify the file you wish to check by setting the RemoteFile prior to calling this method.

If there is no session in place, the value of this property will always be false.

This property is read-only and not available at design time.

Data Type

Boolean

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SFTP 2020 C++ Edition - Version 20.0 [Build 8162]