nl_tokens: Get only the filename from a full path .
pl_tokens: function baseName ( path ) { const parts = path . split ( '/' ) ; if ( path . substr ( - 1 ) === '/' ) { return parts [ parts . length - 2 ] + '/' ; } else { return <mask> [ parts . length - 1 ] ; } }