procedure RemoveFromDirList(AMask: string);


The RemoveFromDirList method can only be called from within a BeforeSendDirListToClient event handler.


Once the server is has collected the list of a directory and is ready to send it to the client, you can create a BeforeSendDirListToClient event handler that runs a script that calls this method to remove some of the directory entries. This method can be called multiple times in the same script, if necessary.


Say, for example, that you don't want the user "johndoe" to see DWG and DXF files, you may create a script like the following: