RemoveFromDirList()

// in class: Session
function RemoveFromDirList(what: string): string;

This function removes the specified items from a directory list that’s about to be returned to the client.

Warning

For obvious reasons, there’s only one event-handler this functions can be meaningfully used in: BeforeSendDirListToClient.

Example

{
  // Let's remove a specific file from the directory list
  Session.RemoveFromDirList('resume.pdf');
  // Let's also remove all .png files from the directory list
  Session.RemoveFromDirList('*.png');
}