Custom export, WrapFileLinks: FIle name without path

When making a custom export, it can be useful to have an option in the WrapFileLinks formatter to get the name of the linked file, with the extenstion, but without the path.
E.g. “report.pdf” instead of “c:\users\me\blablabla\some_more\docs\report.pdf” (as you get with the \p arguement)