Best way to determine if file operation is upload or download in SFTPServer?
Posted: Tue 01 Mar 2016 16:59
Hi,
I have the openfile event set and I used the default openfile event as a template.
My question is what would be the best way to determine if the file open is for upload or download?
Is checking if blockmode is bmRead or bmwrite sufficient?
I want to raise erPermissionDenied if the user does not have Stor or Retr permissions as stored in my authentication DB.
I have the openfile event set and I used the default openfile event as a template.
My question is what would be the best way to determine if the file open is for upload or download?
Is checking if blockmode is bmRead or bmwrite sufficient?
I want to raise erPermissionDenied if the user does not have Stor or Retr permissions as stored in my authentication DB.