Hello, All! I've just stumbled on the TFTPServer feature concerning the way how it processes the PWD and CWD commands. The component returns a physical path on a server, which is stored in the Client.Directory. For a real-life FTP server this is very strange (if not to say insecure) to show to an end user actual directory hierarchy. I'd suppose that the component should provide a property (or an event) to return virtual paths instead of physical ones. But I didn't find any. I thought it could be possible to store a virtual path in the Client.Directory, but the same property is used for building directory listing, so it must point to a physical location. So, what is supposed to do in such a situation? The two decisions I see now are either to create a descendant of the TFtpServer and override the CommandXXX methods, or to patch the component itself. Is there any other ideas? Did I overlook something?
Best wishes, Stanislav Korotky. -- 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
