Skip to content

RemoveFromDirList()

ts
// 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.

CAUTION

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

Example

ts
{
  // 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');
}