Filtering requests (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Mike, (7458 days ago)

Is there a way to filter the requests that a client sends (ie, redirecting an sftp request to a different location?)

locked

Re: Filtering requests

by Jasmine, (7458 days ago) @ Mike

You mean when he, for example, downloads file, you want to give him some other file to download? Yes, in SftpDownloadFile event you can change 'ResolvedPath' argument to something else. User will not know the difference - but wodSSHServer will send him different file.

locked

Re: Filtering requests

by Mike, (7457 days ago) @ Jasmine

You mean when he, for example, downloads file, you want to give him some other file to download? Yes, in SftpDownloadFile event you can change 'ResolvedPath' argument to something else. User will not know the difference - but wodSSHServer will send him different file.

Is there any filtering done beforehand? For example, when trying to get the file c:/ftp/ftpexternal/pub/PDSUpdate/Catalog.import I get the following:

unable to identify c:/ftp/ftpexternal/pub/PDSUpdate/Catalog.import: permission denied

I imagine this is due to the colon. Is there any way around this?

locked

Re: Filtering requests

by Jasmine, (7457 days ago) @ Mike

Mike,

you should request files relative from user's HomeDir (I assume you talk here as relative paths as visible by the client).

locked

Re: Filtering requests

by Mike @, (7457 days ago) @ Jasmine

Understood. Just trying to work around some legacy issues.

locked