If WorkDir is a binary, you could just suffix it with the extension `<<WorkDir/binary, ".zip">>`; I'm pretty sure filelib:wildcard/2 accepts binaries now. If not, ignore this comment!