Re: ftpServer component in .NET - WeOnlyDo Discussion board

Re: ftpServer component in .NET (General questions)

by wodDamir, Tuesday, June 10, 2008, 08:56 (6011 days ago) @ user

Hi,

Regarding 1., and 2., you can do this simply by setting HomeDir, available in User object. Probably the most appropriate place for this would be Connected or LoginPassword event/notification.

You can do something as simple as this:

[code]User.HomeDir = @ C:someFolder [/code]

As for the last question, you should use events/notifications and set Allow property to Deny for actions that aren't allowed. You should have RelativePath and ResolvedPath which should allow you to verify what folder is being accessed.

Hope this helps.

Regards,
Damba


Complete thread: