Poman wrote:
> hi, i just can't figure out, how 2 set a root folder (only
> directories under the server's root folder can be reached)
> TFtpServer component
The client home directory should be set in event OnAuthenticate:
Client.HomeDir := 'C:\FtpRoot\';
Client.Directory := Client.HomeDir; // Set current directory as well
Note that the path MUST include a trailing backslash.
In order to allow directory changes to a level beyond
HomeDir look at either global option ftpsCdUpHome or
client-option ftpCdUpHome.
I recommend to use V6 since it provides options ftpsHidePhysicalPath
and ftpHidePhysicalPath and also fixes some security issues related
to directory changes.
--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be