Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

Preventing operations in a virtual file system?

$
0
0

Hello,

What is the recommended approach for preventing directory/file creation/renaming/removal in some circumstances (e.g. only in the file system's root)?

For renaming, I have attempted:

  • cancelling the operation in FileSystemNotifier.RenamePreview event; in this situation I'm not able to provide a meaningful feedback to the sftp client (it receives "Internal server error")
  • not doing anything in ReadWriteFileSystemProvider.Rename; in this situation, there is no feedback at all for the client and the server logs the operation as successful (which is a bit confusing for my purpose...)

Thanks!


Viewing all articles
Browse latest Browse all 3862

Trending Articles