RootDirectory Property

The root directory for the entire SFTP server.

Syntax

ANSI (Cross Platform)
char* GetRootDirectory();
int SetRootDirectory(const char* lpszRootDirectory); Unicode (Windows) LPWSTR GetRootDirectory();
INT SetRootDirectory(LPCWSTR lpszRootDirectory);
@property (nonatomic,readwrite,assign,getter=rootDirectory,setter=setRootDirectory:) NSString* rootDirectory;
- (NSString*)rootDirectory;
- (void)setRootDirectory:(NSString*)newRootDirectory;
#define PID_SFTPSERVER_ROOTDIRECTORY 20

IPWORKSSFTP_EXTERNAL void* IPWORKSSFTP_CALL IPWorksSFTP_SFTPServer_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSFTP_EXTERNAL int IPWORKSSFTP_CALL IPWorksSFTP_SFTPServer_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

RootDirectory specifies the root of the SFTP server ('/'). If a value is provided, the class will handle all requests by doing all file operations itself, but the events will still give you the opportunity to override the default values/operations as necessary.

If a value is not provided, all events must be handled appropriately to ensure correct operation.

Data Type

String

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